Differences
This shows you the differences between the selected revisions of the page.
2014-12-23 | 2015-02-18 | ||
correcting anchor (martin) | releasing 5.7 stable, removing &beta tags (or replacing with &recent) (martin) | ||
Line 58: | Line 58: | ||
===== Using WinSCP Scripting ===== | ===== Using WinSCP Scripting ===== | ||
==== [[timestamp]] Using TIMESTAMP Variable ==== | ==== [[timestamp]] Using TIMESTAMP Variable ==== | ||
- | //In the latest beta release//, &beta you can use ''[[scripting#timestamp|%TIMESTAMP%]]'' construct to insert a real-time to a script. | + | You can use ''[[scripting#timestamp|%TIMESTAMP%]]'' construct to insert a real-time to a script. |
<code winscp> | <code winscp> | ||
Line 70: | Line 70: | ||
==== [[batch]] From a Batch File ==== | ==== [[batch]] From a Batch File ==== | ||
+ | &recent (*remove once %TIMESTAMP% is widespread*) | ||
In Windows batch file, you may retrieve current time in locale-independent format using command ''[[http://technet.microsoft.com/en-us/library/bb491034.aspx|wmic]] os get LocalDateTime''. You can parse the value using using [[http://en.wikibooks.org/wiki/Windows_Batch_Scripting#String_processing|string processing syntax]]: | In Windows batch file, you may retrieve current time in locale-independent format using command ''[[http://technet.microsoft.com/en-us/library/bb491034.aspx|wmic]] os get LocalDateTime''. You can parse the value using using [[http://en.wikibooks.org/wiki/Windows_Batch_Scripting#String_processing|string processing syntax]]: | ||
Line 94: | Line 95: | ||
==== From a JScript ==== | ==== From a JScript ==== | ||
+ | &recent (*remove once %TIMESTAMP% is widespread*) | ||
You may use following [[guide_automation_advanced#wsh|Windows script host JScript code]] (''example.js''): | You may use following [[guide_automation_advanced#wsh|Windows script host JScript code]] (''example.js''): | ||