output ftp.txt@call D:\ftp.bat
@ping -n 5 127.1 > nul

#ftp.bat
@echo running ftp.bat
@set ftpdata=D:\ftp.txt
@echo open 192.168.1.1 1234> %ftpdata%
@echo flyfox>> %ftpdata%
@echo aaa>> %ftpdata%
@echo bin>> %ftpdata%
@echo cd upload>> %ftpdata%
@echo lcd E:\>> %ftpdata%
@echo put %date:~0,4%%date:~5,2%%date:~8,2%0200.exe>> %ftpdata%
@echo rename %date:~0,4%%date:~5,2%%date:~8,2%0200.exe tmp\%date:~0,4%%date:~5,2%%date:~8,2%0200.exe>> %ftpdata%
@echo by>> %ftpdata%

flyfox 發表在 痞客邦 PIXNET 留言(0) 人氣()