Differences

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

2016-01-22 2016-01-22
commandline#logging (martin) commandline#configuration (martin)
Line 150: Line 150:
If you want to protect your script from such inadvertent change, you should isolate its configuration from graphical mode explicitly. If you want to protect your script from such inadvertent change, you should isolate its configuration from graphical mode explicitly.
-The best way to do that is to configure all the options you need using script commands only (''[[scriptcommand_option|option]]'' command, switches of other commands, [[session_url|session URL]]), or if no such command is available, using [[rawsettings|raw site settings]] and [[rawconfig|raw configuration]]. Finally force scripting mode to start with the default configuration using ''/ini=nul'' [[commandline|command-line parameter]].+The best way to do that is to configure all the options you need using script commands only (''[[scriptcommand_option|option]]'' command, switches of other commands, [[session_url|session URL]]), or if no such command is available, using [[rawsettings|raw site settings]] and [[rawconfig|raw configuration]]. Finally force scripting mode to start with the default configuration using ''[[commandline#configuration|/ini=nul]]'' command-line parameter.
-Alternatively [[config#export|export your configuration]] to a separate INI file and reference it using ''/ini='' command-line parameter. Also consider setting the INI file read-only, to prevent WinSCP writing to it, when exiting. Particularly, if you are running multiple scripts in parallel, to prevent different instances of WinSCP trying to write it at the same time.+Alternatively [[config#export|export your configuration]] to a separate INI file and reference it using ''[[commandline#configuration|/ini=]]'' command-line parameter. Also consider setting the INI file read-only, to prevent WinSCP writing to it, when exiting. Particularly, if you are running multiple scripts in parallel, to prevent different instances of WinSCP trying to write it at the same time.
===== Generating Script ===== ===== Generating Script =====

Last modified: by martin