Differences
This shows you the differences between the selected revisions of the page.
2025-01-26 | 2025-01-26 | ||
no summary (174.229.180.93) (hidden) (untrusted) | no summary (174.229.180.93) (hidden) (untrusted) | ||
Line 20: | Line 20: | ||
- | ==== [[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 ==== |