I am using wget in my windows PC to download files from an ftp server. But it downloads files into a folder where wget.exe is located. But i want it to download files to another folder.How it can be done?( i saw some links which i guess works only in linux).
Asked
Active
Viewed 1,519 times
2 Answers
1
@WINMAN please look into the following thread for your query, which might help you i hope

Community
- 1
- 1

B Gautham Vignesh
- 91
- 12
1
−P prefix
−−directory−prefix=prefix
Set directory prefix to prefix. The directory prefix is the directory where all other files and subdirectories
will be saved to, i.e. the top of the retrieval tree. The default is . (the current directory).
Taken from the PDF, which comes with the docs from here: http://gnuwin32.sourceforge.net/packages/wget.htm
All other command-line arguments are in the pdf as well, so you should look into it.

kufudo
- 2,803
- 17
- 19
-
@kufdo what is the need of -P prefix. if i use that it won' work. When i use −−directory−prefix alone it worked. – IT researcher Mar 25 '13 at 13:21
-
I think you should be able to write "-P c:/temp/download/" – kufudo Mar 25 '13 at 20:16