怎样用批处理 批量获取指定网址的数据 并输出到文本文件

来源:百度知道 编辑:UC知道 时间:2024/09/28 17:23:37
例如我有如下网址 http://www.abc.com/a.asp?id=1
我想获取网址如 http://www.abc.com/a.asp?id=2
http://www.abc.com/a.asp?id=3
http://www.abc.com/a.asp?id=4
..........
http://www.abc.com/a.asp?id=20

如上链接网页内容中 假如有 名字 han 这段内容并输出到文本文件

请问怎么实现阿?

网页内容中有名字han,什么意思呢?

for /l %%i in (1,1,20) do (
echo http://www.abc.com/a.asp?id=%%i >>list.txt
)

Asp判断文件存在读文本无错版
'判断文件内容是否为空(芯友网) if not fs.atendofstream then scontent=fs.ReadAll...

分类: Asp编程 点击: 4 日期: 2009-08-05

http://www.zhan18.com/Program/Asp/2009/08m05d68.html