Differences

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

2014-10-24 2014-10-24
5.6.2 Not popping up a message box, when fatal startup error occurs in scripting with /nointeractiveinput switch (including runs by .NET assembly). If XML logging is enabled, the fatal error is recorded in the log (martin) scripting#quotes and scripting#arguments (martin)
Line 73: Line 73:
If both ''/script'' and ''/command'' parameters are used, commands from script file are executed first. When the last command is not ''[[scriptcommand_exit|exit]]'', regular non-batch mode follows. If both ''/script'' and ''/command'' parameters are used, commands from script file are executed first. When the last command is not ''[[scriptcommand_exit|exit]]'', regular non-batch mode follows.
-Use parameter ''/parameter'' to specify list of arguments to be [[scripting#syntax|passed to script]]. It is recommended to escape the arguments with [[#syntax|// switch]].+Use parameter ''/parameter'' to specify list of arguments to be [[scripting#arguments|passed to script]]. It is recommended to escape the arguments with [[#syntax|// switch]].
With ''[[executables|winscp.exe]]'', if ''/console'' parameter is not used along with ''/script'' or ''/command'', the script/command is executed without visual feedback (window). With ''[[executables|winscp.exe]]'', if ''/console'' parameter is not used along with ''/script'' or ''/command'', the script/command is executed without visual feedback (window).
Line 124: Line 124:
</code> </code>
-To use the double-quote as a literal, use two double-quotes sequentially. For example, the ''/command'' expects that each script command is surrounded by double quotes, so that it is passed as a single command-line argument. In addition, any script command argument that includes spaces is expected to be surrounded by double-quotes within the command (see [[scripting#syntax|doubling double-quotes]]):+To use the double-quote as a literal, use two double-quotes sequentially. For example, the ''/command'' expects that each script command is surrounded by double quotes, so that it is passed as a single command-line argument. In addition, any script command argument that includes spaces is expected to be surrounded by double-quotes within the command (see [[scripting#quotes|doubling double-quotes]]):
<code batch> <code batch>
winscp.com /command "open ""My site""" "put ""C:\Users\martin\Documents\myfile.dat""" winscp.com /command "open ""My site""" "put ""C:\Users\martin\Documents\myfile.dat"""

Last modified: by martin