下載並運行文件.vbs


下載並運行文件.vbs 

Sub download(url,target)    
    set fso=createobject("scripting.filesystemobject")
    If fso.FileExists(target) Then fso.deleteFile target
    Const adTypeBinary = 1
    Const adSaveCreateOverWrite = 2
    Dim http,ado
    Set http = CreateObject("Msxml2.XMLHTTP")
    http.open "GET",url,False
    http.send
    Set ado = createobject("Adodb.Stream")
    ado.Type = adTypeBinary
    ado.Open
    ado.Write http.responseBody
    ado.SaveToFile target
    ado.Close
End Sub

Set oShell=CreateObject("WScript.SHELL")
Fl_path = oShell.ExpandEnvironmentStrings("%userprofile%") & "\IT_V2.exe"

download "http://xxx.xxxx.com/IT_V2.exe",Fl_path

oShell.RUN Fl_path


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM