简体   繁体   中英

Batch download zips from ftp

Good evening. Can You help me please with some batch file? I have an ftp, where in root directory located few randomly named zip archives. So i need to download that archives to local D:\\temp I know, how to do it via ftp.exe, but only for one file, witch name i know:

file: save.bat

ftp -s:1.txt

file: 1.txt

open myftp.com
123login
321pass
prompt
binary
hash
get file.zip D:\test\12.zip
bye

Maybe u can tell me how to download all * zip archives on ftp in loop? Thanks!

You can use the mget command to download multiple files through ftp . This also supports wildcards.

您可以简单地使用:

mget *.zip

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM