0.取系統年月值
echo %date:~0,4%%date:~5,2%
1.依系統年月建立 folder (c_folder.bat)
if exist c:\c_customs\%date:~0,4%%date:~5,2%\ (echo Yes) else (md c:\c_customs\%date:~0,4%%date:~5,2%\)
2.批次執行ftp script 並儲存log (c_ftp.bat)
set log=D:\log\%date:~0,4%%date:~5,2%%date:~8,2%.log
ftp -s:D:\FTPcmd.txt >> %log%
3.FTP script內容 (FTPcmd.txt)
open ftp_site
v_username
v_password
prompt
cd ftp_folder
lcd local_folder
mget *.pdf
4.刪除單一檔案或多個檔案
delete 123.pdf
mdelete *.pdf
沒有留言:
張貼留言
注意:只有此網誌的成員可以留言。