Differences

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

2014-08-27 2014-09-11
batch file syntax highlighting (martin) in-page anchored links without page name (martin)
Line 69: Line 69:
Parameter ''/console'' executes WinSCP in [[scripting|console (scripting) mode]]. Note that when using ''[[executables|winscp.com]]'', the console mode is implicit, so using ''/console'' parameter is redundant. Parameter ''/console'' executes WinSCP in [[scripting|console (scripting) mode]]. Note that when using ''[[executables|winscp.com]]'', the console mode is implicit, so using ''/console'' parameter is redundant.
-To run batch script either pass script file using ''/script'' parameter or specify the commands directly on command line using ''/command''. In the latter case each following parameter is treated as single command. See [[commandline#syntax|syntax section]] and examples below for details how to deal with spaces and double-quotes.+To run batch script either pass script file using ''/script'' parameter or specify the commands directly on command line using ''/command''. In the latter case each following parameter is treated as single command. See [[#syntax|syntax section]] and examples below for details how to deal with spaces and double-quotes.
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 [[commandline#syntax|// switch]].+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]].
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 98: Line 98:
Use ''/defaults'' parameter along with ''/upload'', ''/synchronize'' or ''/keepuptodate'' to skip the settings dialog and start the operation straight away with default settings. Use ''/defaults'' parameter along with ''/upload'', ''/synchronize'' or ''/keepuptodate'' to skip the settings dialog and start the operation straight away with default settings.
-It is recommended to escape the arguments with [[commandline#syntax|// switch]].+It is recommended to escape the arguments with [[#syntax|// switch]].
<code batch> <code batch>

Last modified: by martin