中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-17 07:42
47,813 topics / 349,903 posts / today 0 new / 48,259 members
DOS疑难解答 & 问题讨论 (解答室) » Question about the parameters for the mget command in ftp
Printable Version  2,060 / 2
Floor1 smileseeker Posted 2005-04-11 00:00
中级用户 Posts 83 Credits 316
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?
Floor2 Climbing Posted 2005-04-12 00:00
铂金会员 Posts 2,753 Credits 6,962 From 河北保定
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.
Floor3 smileseeker Posted 2005-04-14 00:00
中级用户 Posts 83 Credits 316
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.
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023