Differences

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

2013-05-17 2013-05-29
no summary (72.10.140.179) surround instead of enclose (martin)
Line 37: Line 37:
</code> </code>
-Command parameters that include space(s) have to be enclosed in double-quotes. To use double-quote literally, double it:+Command parameters that include space(s) have to be surrounded by double-quotes. To use double-quote literally, double it:
<code winscp> <code winscp>
put "file with spaces and ""quotes"".html" put "file with spaces and ""quotes"".html"
</code> </code>
-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.)):+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> <code winscp>
put "%FILE_TO_UPLOAD%" put "%FILE_TO_UPLOAD%"
</code> </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.)):+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 surround reference by double-quotes to cope properly with spaces in its value.)):
<code winscp> <code winscp>
put "%1%" put "%1%"

Last modified: by martin