Differences
This shows you the differences between the selected revisions of the page.
| 2019-05-04 | 2019-05-04 | ||
| aaaaaaaaaaa (109.105.39.50) (hidden) (untrusted) | Restored revision 1552045067. Undoing revision 1556982114. (martin) (hidden) | ||
| Line 52: | Line 52: | ||
| + | ==== [[variables]] Environment Variables ==== | ||
| + | You can use environment variables in the commands, with syntax ''%NAME%'':((Generally do surround reference by double-quotes to cope properly with spaces in its value.)) | ||
| + | <code winscp> | ||
| + | put "%FILE_TO_UPLOAD%" | ||
| + | </code> | ||
| + | |||
| + | Note that variable expansion is different than in Windows batch files: | ||
| + | |||
| + | * You cannot use any [[https://en.wikibooks.org/wiki/Windows_Batch_Scripting#String_processing|string processing syntax]]. | ||
| + | * You cannot use [[wp>Environment_variable#Windows_2|dynamic/pseudo environment variables]], such as ''%DATE%'' or ''%RANDOM%''. | ||
| + | * References to undefined variables are kept intact (not removed). | ||
| + | * You can use ''%WINSCP_PATH%'' to refer to WinSCP [[executable]] path. | ||
| ==== [[timestamp]] Timestamp ==== | ==== [[timestamp]] Timestamp ==== | ||