Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @if (@CodeSection == @Batch) @then
- @echo off
- CScript //nologo //E:JScript "%~F0" "%~1" > "%~N1.html"
- goto :EOF
- @end
- var http = WScript.CreateObject('Msxml2.XMLHTTP.6.0');
- http.open("GET", WScript.Arguments.Item(0), false);
- http.send();
- if (http.status == 200) {
- WScript.StdOut.Write(http.responseText);
- } else {
- WScript.StdOut.WriteLine("Error: Status "+http.status+" returned on download.");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement