Differences
This shows you the differences between the selected revisions of the page.
2019-03-08 | 2019-05-04 | ||
suggest using SHA-256 fingerprint + there's no "copy key" button anymore (martin) | aaaaaaaaaaa (109.105.39.50) (hidden) (untrusted) | ||
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 ==== |