vbs之下载文件
Set post=CreateObject("Msxml2.XMLHTTP")
post.Open "GET","https://blog.csdn.net/xianda9133/article/details/51200034"
'發(fā)送請求
post.Send()
Set aGet = CreateObject("ADODB.Stream")
aGet.Mode = 3
aGet.Type = 1
aGet.Open()
'等待3秒,等文件下載
wscript.sleep 3000
aGet.Write(post.responseBody)'寫數(shù)據(jù)
aGet.SaveToFile "csdn.html",2
總結(jié)
- 上一篇: C++用FindFirstFile、Fi
- 下一篇: vbs劫持快捷键并执行程序