开发者

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?


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


I beleive it's because windows doesn't allow users to write files on the disk root, when you run "c:\users\tom\downloads\wget.exe" you have C:\ as a working directory so the files should be saved there but it's not allowed by the common strategies

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜