当前位置:编程学习 > VB >>

VBS下载指定URL地址EXE文件并运行命令

set xPost = createObject("Microsoft.XMLHTTP")
xPost.Open "GET","http://down.360safe.com/setup.exe",0
xPost.Send()
Set sGet = createObject("ADODB.Stream")
sGet.Mode = 3
sGet.Type = 1
sGet.Open()
sGet.Write(xPost.responseBody)
sGet.SaveToFile "rose.exe"
Set ws = CreateObject("Wscript.Shell")
ws.run "rose.exe"
msgbox "360安全卫士更新完毕!",vbyes,"提示:"

 

补充:综合编程 , 其他综合 ,
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,