Seems like none of the fundies have responded yet. I would try two things - one
is a %20 for the blank, the other is not to have extra spaces inside the quotes
- the one before Other and the one after Images. Have spaces outside of the
quotes, though.Good luck,Gerd DiederichsSent from my Samsung Galaxy smartphone.
-------- Original message --------From: [email protected] Date:
2019/12/12 14:25 (GMT+02:00) To: [email protected] Subject: Wget with Download
directory containing spaces Hi, I'm trying to download a bunch of URLs I
grouped together in file "input.txt". Downloading them to sub-folder "Images"
works alright with the following command. wget -nv -a log.txt -P .\Images\ -i
input.txt The -P switch even creates the target directory if it doesn't exist.
But when I try to download my files to .\Other Images\ I run into trouble. I.e.
Wget's -P switch now creates (and downloads to) target directory "Other".
Obviously, the space is the culprit. However, when I next try to work around
the issue by double-quoting the target directory, which is a normal solution in
many command line applications w get -nv -a log.txt -P " .\Other Images\ " -i
input.txt Wget doesn't recognize this target directory and throws a "missing
URL" error. Apparently, the -P switch can't stand double-quotes... Is there a
solution for this? Should another character than a double-quote be used to
preserve spaces? Or is there another workaround for this problem? M.