Differences
This shows you the differences between the selected revisions of the page.
| 2011-07-31 | 2011-09-16 | ||
| scriptcommand_* (martin) | bug 520 /rawsettings (martin) | ||
| Line 1: | Line 1: | ||
| ====== How do I configure session, transfer and/or any other settings for which there are no script commands? ====== | ====== How do I configure session, transfer and/or any other settings for which there are no script commands? ====== | ||
| - | Generally the solution is to configure the settings in GUI. Script will in the most cases uses the preconfigured settings as default one. | + | Generally the solution is to configure the settings in GUI. Script will in the most cases use the preconfigured settings as default one. //For session settings, in the latest beta release, preferred solution is to use ''/rawsettings'' switch//. &beta |
| If you want to make your configuration portable, you can [[config|save it into an INI file]] and distribute the INI file with your script. | If you want to make your configuration portable, you can [[config|save it into an INI file]] and distribute the INI file with your script. | ||
| Line 9: | Line 9: | ||
| ===== Session Settings ===== | ===== Session Settings ===== | ||
| - | For session settings, you can pre-configure a [[session_configuration#stored|stored session]] with all your settings [[ui_login|from GUI]] and open that stored session using ''[[scriptcommand_open|open]]'' command. | + | For session settings, you can use ''/rawsettings'' switch (&beta_feature) or pre-configure a [[session_configuration#stored|stored session]] with all your settings [[ui_login|from GUI]] and open that stored session using ''[[scriptcommand_open|open]]'' command. |
| + | ==== Using /rawsettings Switch ==== | ||
| + | &beta_feature | ||
| + | |||
| + | For example to open session with enabled HTTP proxy use following command: | ||
| + | <code winscp> | ||
| + | open <session_url> /rawsettings ProxyMethod=3 ProxyHost=proxy ProxyPort=8080 | ||
| + | </code> | ||
| + | |||
| + | To find connect syntax for particular settings, configure the setting in the GUI, store it into a stored session, [[config|save configuration to an INI file]] and use the same syntax as in an INI file. See the next section for example. | ||
| + | |||
| + | ==== Using Stored Session ==== | ||
| For example to enable HTTP proxy use following INI file: | For example to enable HTTP proxy use following INI file: | ||
| <code ini> | <code ini> | ||