日期:2014-05-17 浏览次数:20850 次
@echo off set fADD=192.168.0.18 set fUSR=aaa set fPWD=123 set downfList=a.csv b.csv (echo open %fADD% echo user %fUSR% echo %fPWD% echo ls * %~dp0ls.txt echo quit )>ftp.txt ftp -n -s:ftp.txt findstr /i "success.txt" ls.txt||goto :end (echo open %fADD% echo user %fUSR% echo %fPWD% echo prompt echo mget %downfList% echo quit )>ftp.txt ftp -n -s:ftp.txt :end