Cmd Shell For Download Files

Set xPost = createObject("Microsoft.XMLHTTP")
xPost.Open "GET","http://yoursite:8080/SharePoint/NewsTar/Antivirus/unlocker1.8.5.exe",0 '下载文件的地址
xPost.Send()
Set sGet = createObject("ADODB.Stream")
sGet.Mode = 3
sGet.Type = 1
sGet.Open()
sGet.Write(xPost.responseBody)
sGet.SaveToFile "./unlocker1.8.5.exe",2 '保存文件的路径和文件名

保存为.vbs 执行下载

你可能感兴趣的:(Microsoft,SharePoint)