2013-01-09 59 views
1

我有一個關於wget的問題,我似乎無法弄清楚。使用WGET指定本地目錄

我使用下面的命令來下載我的FTP服務器的全部內容(工作正常)

wget -m -P c:\ ftp://user:[email protected] 

的問題是,在C創建一個文件夾:\稱爲「xxx.xxx.xxx .xxx「並將整個FTP服務器內容放入此目錄中。

我不想爲它創建這個目錄,只是把整個FTP目錄結構直接在C:\

我如何與wget的指定此?

預先感謝您!

回答

3

使用-nH (--no-host-directories)

+0

的根目錄下!非常感謝! – omega1

0
-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) 

http://linux.die.net/man/1/wget

+0

嗨cggaurav,謝謝你的迴應。 是的,我已經閱讀了這個,但我仍然無法讓它停止創建一個IP地址的文件夾。 我希望它可以直接將FTP目錄下載到C:\ – omega1