SV650.org - SV650 & Gladius 650 Forum

SV650.org - SV650 & Gladius 650 Forum (http://forums.sv650.org/index.php)
-   Idle Banter (http://forums.sv650.org/forumdisplay.php?f=116)
-   -   Windows script help (http://forums.sv650.org/showthread.php?t=86396)

tricky 29-03-07 11:37 AM

Windows script help
 
I need to download multiple files (loads) off an internet site.
I want write a little noddy while/do script so I can kick it off and leave it(have quite a bit of ksh script experience) but don't know any of the syntax.

Kind of thing I'm aiming for is (excuse the trickycode)

while read url
do
download/save $url
done < input_file

Anyone help me out ?
TIA

Baph 29-03-07 11:48 AM

Re: Windows script help
 
First, get this.

Code:


Set /P XURL=Enter URL^>
:do
.... call wget with correct parameters....XURL variable holds the URL to fetch
Set /P XURL=Enter URL[Hit ENTER to terminate]^>
if %XURL%=="" goto end
goto do
 
:end
echo Done.


SoulKiss 29-03-07 11:55 AM

Re: Windows script help
 
Hmm no wget in windows....... [EDIT: Seems I was wrong there :P]

Personally what I do (on Linux) is get the wget sourcecode, comment out the bit about it having to do what robots.txt says, then I would just point wget at the site using the mirror switch.

In windows, hmm would look at 3rd party apps - used to be one called Black Widow I used about 10 years ago that was an "impolite" web spider.

David


All times are GMT. The time now is 11:30 AM.

Powered by vBulletin® - Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.