We are two developers working from different country. I want WinSCP to continuously monitor changes in FTP directories and when my partner modify any file, I want it to automatically download the changes to my local directory.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
As @eRIZ commented, using WinSCP for this task may not be an ideal solution. Using revision control system, such as git, would be a way better.
Anyway to answer your question:
- Setup a synchronization script. You will need to use the
synchronize local
command in particular. For general instructions, see the guide to automating file transfers (or synchronization) to FTP server. - Schedule the script to run in regular (frequent) intervals using Windows Windows Scheduler. See the guide to scheduling file transfers (or synchronization) to FTP server.
See also Batch script to watch for changes on FTP server.