当前位置:编程学习 > 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 © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,