China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

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!

中国DOS联盟论坛
The time now is 2026-06-28 22:29
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » Question about the parameters for the mget command in ftp View 1,999 Replies 2
Original Poster Posted 2005-04-11 00:00 ·  中国 福建 三明 电信
中级用户
★★
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?
Floor 2 Posted 2005-04-12 00:00 ·  中国 河北 石家庄 联通
铂金会员
★★★★
网络独行侠
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.
偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人!
Floor 3 Posted 2005-04-14 00:00 ·  中国 福建 三明 电信
中级用户
★★
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.
Forum Jump: