3

I have a list of urls (over 100) of patch files from various sources that I need to download.

I need to create a batch script that will download these files and dump them all into the same directory.

I do not have administrative privileges on the system I need to download to, so it needs to be batch or similer solution.

I would love it if it would echo any errors to the screen and keep rolling on to the next download.

MathewC
  • 6,957
  • 9
  • 39
  • 53
  • You've specified the end goal, but you didn't really specify what part you need help with. Are you just looking for someone to write it for you? – Safado Jun 30 '11 at 17:34
  • Ryan, sure. Or a link to one that I can hack. – MathewC Jun 30 '11 at 17:36
  • Oh, sorry! When I first read it I was thinking "bash" scripting. I'm a noob at batch scripting and wouldn't be of much help. My bad. – Safado Jun 30 '11 at 17:42

3 Answers3

3

These should help:
http://ss64.com/nt/for_cmd.html
http://gnuwin32.sourceforge.net/packages/wget.htm

84104
  • 12,905
  • 6
  • 45
  • 76
2

http://www.httrack.com/page/2/en/index.html

HTTrack can be run just as a EXE.

It does a great job, and can do everything your looking for.

grufftech
  • 6,760
  • 4
  • 37
  • 37
  • This worked, but sadly not on the network I was trying to do it from as the proxy caused issues. – MathewC Jul 03 '11 at 02:03
0

WGET or CURL are good choices for this task. Using CURL to pick up the latest copy of Httrack through your proxy:

curl -x myproxy:8081 -u robw:mysecretpassword --proxy-ntlm http://download.httrack.com/cserv.php3?File=httrack.exe 
RobW
  • 2,806
  • 1
  • 19
  • 22