Why is there nothing after running? What should be done?
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!
@echo off
more +5 <"%~f0">$get$.js
cscript /NoLogo $get$.js %1 %2&&del $get$.js
goto:eof
:::::::::::::::::::::::::::::::::::::::::::::::
if(WScript.arguments.length!=2)WScript.quit();
var url=WScript.Arguments(1);
if(!/^http:^http:\/\/http:\/\//i.test(url))url="http://"+url;
if(/^$/i.test(WScript.Arguments(0))==false)WScript.quit();
oDOM=WScript.GetObject(url);
while(oDOM.readyState!="complete")WScript.sleep(100);
if(WScript.arguments(0).toLowerCase()=='l'){for(i in oDOM.links)WScript.echo(oDOM.links);WScript.quit();}
if(WScript.arguments(0).toLowerCase()=='s'){WScript.echo(oDOM.documentElement.outerHTML);WScript.quit();}
if(WScript.arguments(0).toLowerCase()=='t'){WScript.echo(oDOM.documentElement.outerText);WScript.quit();}