This is an old revision of the document!
Raw Configuration
You can use raw configuration to setup rare advanced global settings.
In scripting, use /rawconfig command-line parameter (when the settings cannot be configured using dedicated command-line parameter or scripting command).
In .NET assembly, use Session.AddRawConfiguration method (when the settings cannot be configured using any dedicated property of Session class).
Advertisement
Common Advanced Settings
| Name | Description | Values |
|---|---|---|
Interface\ExternalIpAddress |
External IP address |
Other Settings
To find correct syntax for settings not listed above, configure the setting in the GUI, save configuration to an INI file and use the same syntax as you find an INI file.
The settings is identified using syntax section\name, where the section is a path to configuration section from [Configuration] section in an INI file.1 E.g. to configure a setting ExternalIpAddress in section [Configuration\Interface], use Interface\ExternalIpAddress.
Example
For example to configure an External IP address, in scripting:
winscp.com /rawconfig Interface\ExternalIpAddress=198.51.100.10 /script=...
or in .NET assembly (using PowerShell):
$session.AddRawSettings("Interface\ExternalIpAddress", "198.51.100.10")
Advertisement
- Or
HKEY_CURRENT_USER\Software\Martin Prikryl\WinSCP 2\Configurationkey in a registryBack