Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. @if (@CodeSection == @Batch) @then
  2.  
  3. @echo off
  4. CScript //nologo //E:JScript "%~F0" "%~1" > "%~N1.html"
  5. goto :EOF
  6.  
  7. @end
  8.  
  9. var http = WScript.CreateObject('Msxml2.XMLHTTP.6.0');
  10. http.open("GET", WScript.Arguments.Item(0), false);
  11. http.send();
  12.  
  13. if (http.status == 200) {
  14. WScript.StdOut.Write(http.responseText);
  15. } else {
  16. WScript.StdOut.WriteLine("Error: Status "+http.status+" returned on download.");
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement