SV650.org - SV650 & Gladius 650 Forum



Idle Banter For non SV and non bike related chat (and the odd bit of humour - but if any post isn't suitable it'll get deleted real quick).
There's also a "U" rating so please respect this. Newbies can also say "hello" here too.

Reply
 
Thread Tools
Old 29-03-07, 11:37 AM   #1
tricky
Guest
 
Posts: n/a
Default 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
  Reply With Quote
Old 29-03-07, 11:48 AM   #2
Baph
Guest
 
Posts: n/a
Default 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.
  Reply With Quote
Old 29-03-07, 11:55 AM   #3
SoulKiss
Member
Mega Poster
 
SoulKiss's Avatar
 
Join Date: Jul 2006
Location: Sunny Croydonia
Posts: 6,124
Default 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

Last edited by SoulKiss; 29-03-07 at 12:01 PM. Reason: Just read Baphs post
SoulKiss is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP / MySQL coders out there, script help TSM Idle Banter 15 08-05-09 10:19 AM
Rainbow script that never was Defender Idle Banter 2 18-04-08 02:59 PM
windows script help needed timwilky Idle Banter 5 13-07-07 05:05 PM
Indian script monkeys timwilky Idle Banter 7 02-03-07 11:50 AM
Script help sharriso74 Idle Banter 13 03-02-06 03:53 PM


All times are GMT. The time now is 10:48 PM.


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