China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

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!

中国DOS联盟论坛
The time now is 2026-06-24 06:50
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » [Original] Batch Processing to Implement Web Page Download (260 bytes) View 6,214 Replies 18
Floor 16 Posted 2009-04-17 03:53 ·  中国 安徽 马鞍山 电信
社区乞丐
Credits -27
Posts 45
Joined 2006-05-16 11:25
20-year member
UID 55616
Status Offline
Why is there nothing after running? What should be done?
Floor 17 Posted 2009-04-17 05:53 ·  中国 广西 南宁 电信
初级用户
★★
Credits 99
Posts 53
Joined 2006-08-18 18:44
19-year member
UID 60809
Status Offline
This is very similar to Microsoft's script, but implemented in an AJAX way, with CSS and images discarded. I wonder how the original poster's is.

Microsoft link:
http://www.microsoft.com/china/technet/community/scriptcenter/other/scroth16.mspx
Floor 18 Posted 2009-04-17 10:05 ·  中国 湖北 黄石 电信
中级用户
★★
Credits 330
Posts 244
Joined 2006-04-14 14:07
20-year member
UID 53823
Gender Male
From 湖北
Status Offline
Thanks to the LZ for sharing~~~
Here I merged the two paragraphs of the first floor.
Copy and save as iget.bat
iget l www.baidu.com to get hyperlinks in the http://www.baidu.com
iget s www.baidu.com to get the source file of the game
iget t www.baidu.com to get the game
@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();}
Floor 19 Posted 2009-05-31 13:37 ·  中国 福建 三明 电信
高级用户
★★
论坛上抢劫的
Credits 551
Posts 246
Joined 2006-09-21 12:35
19-year member
UID 63270
Status Offline
Forum Jump: