我想每天早上6点将远程ftp文件夹与我的本地文件夹同步。有没有办法自动化这个WinSCP,以便我不必使用Windows Scheduler?
答案 0 :(得分:5)
set winscp=C:\WinSCP\WinSCP.com
echo option batch continue > script.tmp
echo option confirm off >> script.tmp
echo open ftp.example.com >> script.tmp
echo synchronize remote C:\local\folder /home/remote/folder >> script.tmp
echo exit >> script.tmp
%winscp% /script=script.tmp
del script.tmp