登录 | 首页 -> 华新鲜事 -> 求学狮城 | 切换到:传统版 / sForum | 树形列表
坛子里有没有网络高手,请进
<<始页  [1]  末页>> 

坛子里有没有网络高手,请进
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.

[大猩猩 (8-5 11:08, Long long ago)] [ 传统版 | sForum ][登录后回复]1楼

不能使用Linux[大猩猩 (8-5 11:09, Long long ago)] [ 传统版 | sForum ][登录后回复]2楼

Problem solved... Thanks... Use method 1.[大猩猩 (8-5 21:54, Long long ago)] [ 传统版 | sForum ][登录后回复]3楼

(引用 大猩猩:Problem solved... Thanks... Use method 1.)can you post your solution, so that others will benefit as well? [icky (8-6 7:53, Long long ago)] [ 传统版 | sForum ][登录后回复]4楼

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>
[大猩猩 (8-8 14:12, Long long ago)] [ 传统版 | sForum ][登录后回复]5楼


<<始页  [1]  末页>> 
登录 | 首页 -> 华新鲜事 -> 求学狮城 | [刷新本页] | 切换到:传统版 / sForum