简体   繁体   中英

Windows batch command ftp

is there anyone who can tell me how to make a batch which connects to at ftp server and downloads the latest file from the server.

I only need the newest file, not the old ones.

您可以使用Windows的wget之类的东西,可以将其配置为仅下载比您当前拥有的文件新的文件,如下所示:

wget -N ftp://username%3Apassword@FTPServerAddress/dir/*

选中此选项。它需要Powershell(默认情况下,所有Windows 7机器都具有Powershell)。比较日期比较容易。

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