Svend, I did not have the same problem when I put it in quotation marks, see below: I am running GNU Wget 1.9.1 on windows xp
--------------------------------------------------------------------------------- C:\ranjit\wget>wget -P "%HOMEPATH%/mm" http://www.google.com --10:56:45-- http://www.google.com/ => `/Documents and Settings/ranjit/mm/index.html' Resolving www.google.com... 216.239.37.104, 216.239.37.99 Connecting to www.google.com[216.239.37.104]:80... connected. HTTP request sent, awaiting response... 200 OK Length: unspecified [text/html] [ <=> ] 3,970 --.--K/s 10:56:45 (3.79 MB/s) - `/Documents and Settings/ranjit/mm/index.html' saved [39 70] ----------------------- another try with space in directory name----------------------- C:\ranjit\wget>wget -P "c:/ranjit/mm ll/" http://www.google.com --10:54:37-- http://www.google.com/ => `c:/ranjit/mm ll/index.html' Resolving www.google.com... 216.239.37.104, 216.239.37.99 Connecting to www.google.com[216.239.37.104]:80... connected. HTTP request sent, awaiting response... 200 OK Length: unspecified [text/html] [ <=> ] 3,970 --.--K/s 10:54:37 (3.79 MB/s) - `c:/ranjit/mm ll/index.html' saved [3970] ------------------------------------------------------------------------------------- Ranjit Sandhu 703.803.1755 SRA -----Original Message----- From: Svend Koustrup [mailto:[EMAIL PROTECTED] Sent: Monday, January 29, 2007 10:20 AM To: [EMAIL PROTECTED] Subject: --directory-prefix and Windows Homepath problems Hello GNU and wget developers I'm trying to get wget to download to my Windows desktop folder (As my only use of wget is to download files that would be executed if entered into a webbrowser, e.g. mediafiles) I tried to use the %HOMEPATH% variable which outputs the current users homedir. But in stupid Windows, all homedirs is in the folder "Documents and Settings"... with spaces in it. Dohh! That way, I cannot use wget -P %HOMEPATH%\Desktop because wget would think that the URL is "and"... I tried with different types of quote-signs (", ', ยด, `) around the path, with no luck. wget don't understand the signs. Can you make wget understand e.g. -P "c:\documents and settings\<user>\desktop\" <url> ? Kindest regards Svend Koustrup
