On Sat, 14 Mar 2009, Micah Cowan wrote:
JOSE ANTONIO SBRAGIA SENNA wrote:
Dear sirs:
In the documentation of the DOS port of wget
I could not find a way to download to a directory
or drive outside the directory from which wget
runs (that is, if I use the -P= option with
another drive letter, wget will create a sub
directory with that letter as name). Is there
a way to do this ?
There is no = after the -P option; if you write -P=c, wget would save
to a directory named =c.
Drive letters are not directory names. -P C asks wget to create a
subdir named C. Try -P C:\.
There are several options for the DOS ports. Both the versions compiled
by me and those compiled by Michael Kostylev are DJGPP ports, so DJGPP
specific addressing is also possible. DJGPP recognizes backslashes and
forward slashes in the address and also recognizes the special /dev/
addressing. So if you wanted the files to go to C:\mydir\, you could
use:
-P C:\mydir
-P C:/mydir
-P /dev/c/mydir
--directory-prefix=C:\mydir
--directory-prefix=C:/mydir
--directory-prefix=/dev/c/mydir
They all should work. Remember that you should NOT have an actual
directory under root called dev.
Doug
--
Doug Kaufman
Internet: dkauf...@rahul.net