bat脚本如下,自动ftp下载上传,但是使用at添加任务不能运行。请高手帮忙解答为什么,谢谢!- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
- @echo open hkgopr03-in> O:\temp\getandput.txt
- @echo ftpuser>>O:\temp\getandput.txt
- @echo 33444433>>O:\temp\getandput.txt
- @echo bin>>O:\temp\getandput.txt
- @echo get ISALog_%date:~0,4%-%date:~5,2%-%date:~8,2%_web.zip O:\Temp\ISALog_%date:~0,4%-%date:~5,2%-%date:~8,2%_web_03.zip>>O:\temp\getandput.txt
- @echo close>>O:\temp\getandput.txt
- @echo open hkgopr02-in>> O:\temp\getandput.txt
- @echo ftpuser>>O:\temp\getandput.txt
- @echo 33444433>>O:\temp\getandput.txt
- @echo bin>>O:\temp\getandput.txt
- @echo get ISALog_%date:~0,4%-%date:~5,2%-%date:~8,2%_web.zip O:\Temp\ISALog_%date:~0,4%-%date:~5,2%-%date:~8,2%_web_02.zip>>O:\temp\getandput.txt
- @echo close>>O:\temp\getandput.txt
- @echo open hkgopr01-in>> O:\temp\getandput.txt
- @echo ftpuser>>O:\temp\getandput.txt
- @echo 33444433>>O:\temp\getandput.txt
- @echo bin>>O:\temp\getandput.txt
- @echo get ISALog_%date:~0,4%-%date:~5,2%-%date:~8,2%_web.zip O:\Temp\ISALog_%date:~0,4%-%date:~5,2%-%date:~8,2%_web_01.zip>>O:\temp\getandput.txt
- @echo close>>O:\temp\getandput.txt
- @echo open itocftp>>O:\temp\getandput.txt
- @echo ftpuser>>O:\temp\getandput.txt
- @echo 33444433>>O:\temp\getandput.txt
- @echo bin>>O:\temp\getandput.txt
- @echo put O:\temp\ISALog_%date:~0,4%-%date:~5,2%-%date:~8,2%_web_03.zip>>O:\temp\getandput.txt
- @echo put O:\temp\ISALog_%date:~0,4%-%date:~5,2%-%date:~8,2%_web_02.zip>>O:\temp\getandput.txt
- @echo put O:\temp\ISALog_%date:~0,4%-%date:~5,2%-%date:~8,2%_web_01.zip>>O:\temp\getandput.txt
- @echo bye>>O:\temp\getandput.txt
- @ftp -s:o:\temp\getandput.txt
复制代码
|