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

Table of Contents

Session Settings

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

Advertisements:

For example to open session with enabled HTTP proxy use following command:

open <session_url> -rawsettings ProxyMethod=3 ProxyHost=proxy ProxyPort=8080

See raw session settings syntax.

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.

If you want to make your configuration portable, you can save it into an INI file and distribute the INI file with your script.

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

You may want to set the INI file read-only, to prevent WinSCP writing to it, when exiting.

Examples

You can use INI file using following syntax: 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
 
  faq_script_ini.txt · Last modified: 15 Apr 2013 by prikryl
 

Search Documentation

This page

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

Associations

Kyplex Cloud Security Seal - Click for Verification

Site design by Black Gate