Differences
This shows you the differences between the selected revisions of the page.
2016-09-06 | 2016-09-06 | ||
typo (martin) | scripting (martin) | ||
Line 189: | Line 189: | ||
In the //Session log file// you can specify a path to a [[logging|session log file]]. The option is available on the [[ui_pref_commands|Preferences dialog]] only. | In the //Session log file// you can specify a path to a [[logging|session log file]]. The option is available on the [[ui_pref_commands|Preferences dialog]] only. | ||
+ | ===== Scripting ===== | ||
+ | |||
+ | Or you can simply use the ''[[scriptcommand_synchronize|synchronize]]'' scripting command. | ||
+ | |||
+ | To make the synchronization run periodically, you can either [[guide_schedule|schedule the script]] or run the script in a loop. The latter may be more convenient, as it allows you to see all runs in a single console window, so that you can review the updates easily. | ||
+ | |||
+ | To run the script in the loop, you can use following batch file:((Note that the ''[[https://technet.microsoft.com/en-us/library/cc754891.aspx|timeout]]'' command is available since Windows 7 only. For alternatives in older versions of Windows, refer to [[https://stackoverflow.com/q/1672338/850848|How to sleep for 5 seconds in Windows's Command Prompt?]] article.)) | ||
+ | <code batch> | ||
+ | @echo off | ||
+ | :loop | ||
+ | winscp.com /script=full_remote_to_local_synchronization.txt | ||
+ | timeout /t 30 | ||
+ | goto loop | ||
+ | </code> | ||
+ | |||
+ |