Synchronize remote ftp folder with local using WinSCP at same time every day

落花浮王杯 提交于 2019-12-05 07:20:50

问题


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?


回答1:


Create a batch file

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


来源:https://stackoverflow.com/questions/17069590/synchronize-remote-ftp-folder-with-local-using-winscp-at-same-time-every-day

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!