Differences

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

2009-07-01 2009-09-03
typo (martin) bug 454 (martin)
Line 49: Line 49:
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 (If the command includes spaces, enclose it in 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. If the command includes spaces (most does), enclose it in double-quotes. If the command itself includes double-quotes (e.g. to enclose filename with spaces), double them. ((''%%winscp.exe /console /command "option batch on" "open ""session with space"""%%''))
If both ''/script'' and ''/command'' parameters are used, commands from script file are executed first. When the last command is not ''[[script_commands#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 ''[[script_commands#exit|exit]]'', regular non-batch mode follows.

Last modified: by martin