문제

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?

도움이 되었습니까?

해결책

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
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top