1

I want to synchronize a remote ftp folder with my local folder every morning at 6am. Is there a way to automate this WinSCP so that I dont have to use Windows Scheduler?

4

1 回答 1

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
于 2013-07-18T09:04:16.787 回答