Differences

This shows you the differences between the selected revisions of the page.

2009-07-02 2009-09-03
4.2.2 bug 367 (martin) bug 454 (martin)
Line 5: Line 5:
===== [[syntax]] General Syntax ===== ===== [[syntax]] General Syntax =====
-You can use environment variables in the commands, with syntax ''%NAME%''.+Command parameters that include space(s) have to be enclosed in double-quotes. To use double-quote literally, double it: 
 +<code winscp>; 
 +put "file with spaces and ";"quotes"";.html&quot
 +<;/code>
-You can reference script arguments (passed on command-line using parameter ''[[commandline#scripting|/parameter]]'') using syntax ''%N%'', where ''N'' is ordinal number of argument.+You can use environment variables in the commands, with syntax ''%NAME%'' ((Generally do enclose reference to double-quotes to cope properly with spaces in its value.)): 
 +<code winscp> 
 +put "%FILE_TO_UPLOAD%" 
 +</code> 
 + 
 +You can reference script arguments (passed on command-line using parameter ''[[commandline#scripting|/parameter]]'') using syntax ''%N%'', where ''N'' is ordinal number of argument ((Generally do enclose reference to double-quotes to cope properly with spaces in its value.)): 
 +<code winscp> 
 +put "%1%" 
 +</code>
Note that WinSCP treats filenames in case sensitive manner. So even if your server treats filenames in case insensitive manner, make sure you specify case properly((This is important particularly for FTP sessions.)). Note that WinSCP treats filenames in case sensitive manner. So even if your server treats filenames in case insensitive manner, make sure you specify case properly((This is important particularly for FTP sessions.)).