Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

wget on Windows command line

Basically I'm trying to download images from a website using the following command (SwiftIRC is an easy example to use):

wget.exe -r -l1 -A.png --no-parent www.swiftirc.net/index.php

This command works fine, however one of the ways I am trying to do it isn't working. When I fire up an elevated command prompt, default to windows\system32.

If I use to following two commands everything works fine:

cd c:\users\tom\downloads\\

wget.exe -r -l1 etc. etc.**

The images are saved in the folder www.swiftirc.net in my downloads folder. However if I try to do this in one line like this:

c:\users\tom\downloads\wget.exe -r -l1 etc. etc.

The response from wget on the cmd is exactly the same, but the images are not saved on my hard disk.

Does anyone know what I'm doing wrong?

like image 974
Tom Avatar asked Nov 05 '22 07:11

Tom


1 Answers

Try adding c:\users\tom\downloads\ to PATH or put wget.exe into your windows/system32 folder.

like image 120
Vinnie Avatar answered Nov 10 '22 16:11

Vinnie