BAT获取FTP指定文件

以下两个文件放在同一目录下
getfile.bat文件内容如下:
@echo offftp.exe -i -s:getfile.txt 192.168.1.2(更换成你的ip,参数之间有空格)pauseexit@echo off
getfile.txt文件内容如下
myaccount
mypassword
cd Abinlcd D:\TEMP
get A.exe
cd..
cd B
get B.exe
cd..
cd C
get C.exe
bye

posted @ 2017-06-10 23:04  bamboo233  阅读(1713)  评论(0)    收藏  举报