//사용: cscript this.js http://www.xxx.com/xxx.exe c:xxx.exe
var objArgs = WScript.Arguments;
var sGet=new ActiveXObject("ADODB.Stream");
var xGet = false;
시도해 보세요. {
xGet = 새 XMLHttpRequest();
}
catch(trymicrosoft) {
try {
xGet = new ActiveXObject("Msxml2.XMLHTTP");
}
catch(othermicrosoft) {
시도 {
xGet = new ActiveXObject("Microsoft.XMLHTTP");
}
catch(실패) {
xGet = false;
}
}
}
xGet.Open ("GET",objArgs(0).toLowerCase(),0);
xGet.Send();
sGet.Mode=3;
sGet.Type=1;
sGet.Open();
sGet.Write(xGet.ResponseBody);
sGet.SaveToFile (objArgs(1).toLowerCase(),2);