Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!
Credits 316 Posts 83 Joined 2005-03-01 00:00 21-year member UID 36626 Gender Male
Status Offline
The system I'm using is win2000. I want to use ftp's mget command to batch download files,
but it keeps asking for confirmation.
What parameter should I add?
Credits 6,962 Posts 2,753 Joined 2003-04-16 00:00 23-year member UID 1565 Gender Male From 河北保定
Status Offline
The mget command doesn't seem to have such a parameter. But you can use an FTP script file to achieve this function. However, if the number of files to be downloaded is uncertain, then it's not easy to handle.
How to use the script file: ftp -s:script.ftp Example of a script file:
open ftp.server.ip.address port
anonymous
test@the.net
cd /yourdir
mget *
y
y
y
y
y
q
bye
Since each file needs a y, if the number of files is uncertain, there's no way to know how many y's to put.
The FTP functionality in Windows is too weak. I suggest you use wget instead of it.
Credits 316 Posts 83 Joined 2005-03-01 00:00 21-year member UID 36626 Gender Male
Status Offline
Thanks, expert climbing. Yesterday I checked some materials and found that as long as you add n to prompt in ftp to exit interactive mode, mget can download directly without any parameters.