This is an old revision of the document!

How do I configure site, transfer and/or any other settings for which there are no script commands?

Advertisement

Site Settings

For site settings, you can use -rawsettings switch of open command.

See raw site settings syntax.

Global Settings

Transfer Settings

For transfer setting, you can pre-configure your preferred settings as default transfer settings. The script uses the default transfer settings as initial.

You should then isolate configuration prepared for the script.

If the value of the option is not static you can generate the INI file before running the script.

For example, to configure changing case of filenames to lowercase during transfer, use following INI file:

[Configuration\Interface\CopyParam]
; File name case modification (1 = Upper case, 2 = Lower case, 4 = Lower case 8.3)
FileNameCase=2

Other Settings

The same applies to most other settings, such as configuring reconnect interval:

[Configuration\Interface]
SessionReopenAuto=10000

Advertisement

Using /rawconfig parameter

In the latest beta release, you can use /rawconfig parameter.

For example to configure the two settings shown above use:

winscp.exe ... /rawconfig Interface\CopyParam\FileNameCase=2 Interface\SessionReopenAuto=10000

Last modified: by martin