Differences

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

2015-02-18 2015-02-18
releasing 5.7 stable, removing &beta tags (or replacing with &recent) (martin) 5.7 batch mode is implicit for scripts (martin)
Line 15: Line 15:
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 intact until 5.6.x stable *)+//Since WinSCP 5.7,// when running commands specified using ''/script'' or ''/command'', batch mode is used implicitly and overwrite confirmations are turned off. &recent (* Other articles referring to "option batch abort" are left intact until 5.7 is widespread *) In older releases and in an interactive scripting mode, the user is prompted in the same way as in GUI mode. To force 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).
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