Differences

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

2014-07-14 2014-07-28
5.6 Change: When executing script file or script commands provided on command-line, default batch mode is abort and overwrite confirmations are turned off. (martin) typo in comment (martin)
Line 14: Line 14:
For automation, commands can be read from a script file specified by ''/script'' switch, passed from the command-line using the ''/command'' switch, or read from standard input of ''winscp.com''. For automation, commands can be read from a script file specified by ''/script'' switch, passed from the command-line using the ''/command'' switch, or read from standard input of ''winscp.com''.
-By default an interactive mode is used (the user is prompted in the same way as in GUI mode). To switch to batch mode (all prompts are automatically answered negatively) use the command ''[[scriptcommand_option|option batch abort]]''. For batch mode it is recommended to turn off confirmations using ''[[scriptcommand_option|option confirm off]]'' to allow overwrites (otherwise the [[ui_overwrite|overwrite confirmation prompt]] would be answered negatively, making overwrites impossible). //Since 5.6 beta, when running commands specified using ''/script'' or ''/command'', batch mode is used implicitly and overwrite confirmations are turned off.// &beta (* Other articles referring to "option batch abort" are left intacct until 5.6.x stable *)+By default an interactive mode is used (the user is prompted in the same way as in GUI mode). To switch to batch mode (all prompts are automatically answered negatively) use the command ''[[scriptcommand_option|option batch abort]]''. For batch mode it is recommended to turn off confirmations using ''[[scriptcommand_option|option confirm off]]'' to allow overwrites (otherwise the [[ui_overwrite|overwrite confirmation prompt]] would be answered negatively, making overwrites impossible). //Since 5.6 beta, when running commands specified using ''/script'' or ''/command'', batch mode is used implicitly and overwrite confirmations are turned off.// &beta (* Other articles referring to "option batch abort" are left intact until 5.6.x stable *)
Multiple sessions can be opened simultaneously. Use the ''[[scriptcommand_session|session]]'' command to switch between them. Multiple sessions can be opened simultaneously. Use the ''[[scriptcommand_session|session]]'' command to switch between them.

Last modified: by martin