Differences

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

2009-06-30 2009-06-30
4.2.2 bug 396 (martin) 4.2.2 bug 197 (martin)
Line 1: Line 1:
====== Script Commands ====== ====== Script Commands ======
-In its [[scripting|scripting]] functionality, WinSCP supports following commmands.+In its [[scripting|scripting]] functionality, WinSCP supports set commands described below.
You can see the very same help for the commands as shown here, if you type command ''[[script_commands#help|help <command>]]'' directly in console. You can see the very same help for the commands as shown here, if you type command ''[[script_commands#help|help <command>]]'' directly in console.
 +===== General Syntax =====
You can use environment variables in the commands, with syntax ''%NAME%''. You can use environment variables in the commands, with syntax ''%NAME%''.
 +
 +You can reference script arguments (passed on command-line using parameter ''/parameter'') using syntax ''%n%'', where ''n'' is ordinal number of argument.
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.)).