坛子里有没有网络高手,请进
登录 | 论坛导航 -> 华新鲜事 -> 求学狮城 | 本帖共有 4 楼,分 1 页, 当前显示第 1 页 : 本帖树形列表 : 刷新 : 返回上一页
<<始页  [1]  末页>>
作者:大猩猩 (等级:2 - 初出茅庐,发帖:86) 发表:2005-08-05 11:08:40  楼主  关注此帖评分:
坛子里有没有网络高手,请进

My OS is Win xp, I want to dump some URLs into one file using batch processing.

For example,

I have the following URLs:

http://www.aaa.bbb.com/1
http://www.aaa.bbb.com/2
http://www.aaa.bbb.com/3
http://www.aaa.bbb.com/4
...
http://www.aaa.bbb.com/99
http://www.aaa.bbb.com/100

Please note the content of above URLs is all text.
So, I want to write all the contents into one file for furthur processing.
It seems I can use for loop to do it. (batch mode)

You can use:
(1) JavaScript or else. (But Javascript can not write file on local harddisk,
of course, you can write the content into one html file, then "save is".)

(I have tried this, failed. because, I did not use HTML and Script for long time.)

(2) Use some tools in DOS mode.

for (i = 1; i <= 100, i++)
dump http://www.aaa.bbb.com/i > tmp.txt

(I have tried this, but in MS-DOS, difficult to config the network.)

(3) Use some tools in windowns mode.
Any tools can do this???

I do not have VB on hand, otherwise, I can use it to develop me.
VB have HTTP control activex.)


Thanks a lot.

欢迎来到华新中文网,踊跃发帖是支持我们的最好方法!原文 / 传统版 / WAP版所有回复从这里展开收起列表
作者:大猩猩 (等级:2 - 初出茅庐,发帖:86) 发表:2005-08-05 11:09:16  2楼
坛子里有没有网络高手,请进 My OS is Win xp, I want to dump some URLs into one file using batch processing. For example, I have the following URLs: http://www.aaa.bbb.com/1 http://www.aaa.bbb.com/2 http://www.aaa.bbb.com/3 http://www.aaa.bbb.com/4 ... http://www.aaa.bbb.com/99 http://www.aaa.bbb.com/100 Please note the content of above URLs is all text. So, I want to write all the contents into one file for furthur processing. It seems I can use for loop to do it. (batch mode) You can use: (1) JavaScript or else. (But Javascript can not write file on local harddisk, of course, you can write the content into one html file, then "save is".) (I have tried this, failed. because, I did not use HTML and Script for long time.) (2) Use some tools in DOS mode. for (i = 1; i tmp.txt (I have tried this, but in MS-DOS, difficult to config the network.) (3) Use some tools in windowns mode. Any tools can do this??? I do not have VB on hand, otherwise, I can use it to develo
不能使用Linux
欢迎来到华新中文网,踊跃发帖是支持我们的最好方法!原文 / 传统版 / WAP版所有回复从这里展开收起列表
作者:大猩猩 (等级:2 - 初出茅庐,发帖:86) 发表:2005-08-05 21:54:40  3楼
坛子里有没有网络高手,请进 My OS is Win xp, I want to dump some URLs into one file using batch processing. For example, I have the following URLs: http://www.aaa.bbb.com/1 http://www.aaa.bbb.com/2 http://www.aaa.bbb.com/3 http://www.aaa.bbb.com/4 ... http://www.aaa.bbb.com/99 http://www.aaa.bbb.com/100 Please note the content of above URLs is all text. So, I want to write all the contents into one file for furthur processing. It seems I can use for loop to do it. (batch mode) You can use: (1) JavaScript or else. (But Javascript can not write file on local harddisk, of course, you can write the content into one html file, then "save is".) (I have tried this, failed. because, I did not use HTML and Script for long time.) (2) Use some tools in DOS mode. for (i = 1; i tmp.txt (I have tried this, but in MS-DOS, difficult to config the network.) (3) Use some tools in windowns mode. Any tools can do this??? I do not have VB on hand, otherwise, I can use it to develo
Problem solved... Thanks... Use method 1.
欢迎来到华新中文网,踊跃发帖是支持我们的最好方法!原文 / 传统版 / WAP版所有回复从这里展开收起列表
作者:大猩猩 (等级:2 - 初出茅庐,发帖:86) 发表:2005-08-08 14:12:51  4楼
坛子里有没有网络高手,请进 My OS is Win xp, I want to dump some URLs into one file using batch processing. For example, I have the following URLs: http://www.aaa.bbb.com/1 http://www.aaa.bbb.com/2 http://www.aaa.bbb.com/3 http://www.aaa.bbb.com/4 ... http://www.aaa.bbb.com/99 http://www.aaa.bbb.com/100 Please note the content of above URLs is all text. So, I want to write all the contents into one file for furthur processing. It seems I can use for loop to do it. (batch mode) You can use: (1) JavaScript or else. (But Javascript can not write file on local harddisk, of course, you can write the content into one html file, then "save is".) (I have tried this, failed. because, I did not use HTML and Script for long time.) (2) Use some tools in DOS mode. for (i = 1; i tmp.txt (I have tried this, but in MS-DOS, difficult to config the network.) (3) Use some tools in windowns mode. Any tools can do this??? I do not have VB on hand, otherwise, I can use it to develo
My Solution in Javascript
<html>
<head>
<title>Javascript - for loop example syntax </title>

<script language=javascript type="text/javascript">
var i;

for (i =151; i <=200; i++) {
document.write('<iframe name="home" src="http://xxx.xxxx.xxxx.xxxx/' + i + '/"

frameborder="0" allowtransparency="true" SCROLLING=NO width="100%" height="500">

</iframe>')
}

</script>

</head>
<body>

</body>
</html>
欢迎来到华新中文网,踊跃发帖是支持我们的最好方法!原文 / 传统版 / WAP版所有回复从这里展开收起列表
论坛导航 -> 华新鲜事 -> 求学狮城 | 返回上一页 | 本主题共有 4 篇文章,分 1 页, 当前显示第 1 页 | 回到顶部
<<始页  [1]  末页>>

请登录后回复:帐号   密码