Differences

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

2014-11-13 2014-11-13
5.6.3 relieving restriction on combining URLs on command line with some switches, such as /log, /xmllog and /defaults. (martin) 5.6.3 Bug 1236 Sites can be mass-modified using /batchsettings command-line parameter. (martin)
Line 18: Line 18:
winscp.exe [/ini=<inifile>] [/log=<logfile>] [/xmllog=<logfile> [/xmlgroups]] winscp.exe [/ini=<inifile>] [/log=<logfile>] [/xmllog=<logfile> [/xmlgroups]]
winscp.exe [/rawconfig config1=value1 config2=value2 ...] winscp.exe [/rawconfig config1=value1 config2=value2 ...]
 +winscp.exe [/batchsettings <site_mask> setting1=value1 setting2=value2 ...]
winscp.exe /update winscp.exe /update
winscp.exe /help winscp.exe /help
Line 30: Line 31:
</code> </code>
-==== Session ====+==== [[session]] Session ====
The first syntax opens the [[session_configuration#site|site]]. To open site, stored in folder, use path syntax "folder/site". You can also open [[workspace|workspace]] or all sites in site folder. The first syntax opens the [[session_configuration#site|site]]. To open site, stored in folder, use path syntax "folder/site". You can also open [[workspace|workspace]] or all sites in site folder.
Line 116: Line 117:
With ''/rawconfig'' parameter you can set any configuration settings using raw format as in an INI file. The settings is identified using syntax ''section\name'', where the ''section'' is a path to configuration section from ''HKEY_CURRENT_USER\Software\Martin Prikryl\WinSCP 2\Configuration'' key in a registry or ''[Configuration]'' section in an INI file. E.g. to configure a reconnect interval use ''/rawconfig Interface\SessionReopenAuto=10000''. The parameter must come after a session URL (if any). The configuration set this way is preserved. &beta_feature With ''/rawconfig'' parameter you can set any configuration settings using raw format as in an INI file. The settings is identified using syntax ''section\name'', where the ''section'' is a path to configuration section from ''HKEY_CURRENT_USER\Software\Martin Prikryl\WinSCP 2\Configuration'' key in a registry or ''[Configuration]'' section in an INI file. E.g. to configure a reconnect interval use ''/rawconfig Interface\SessionReopenAuto=10000''. The parameter must come after a session URL (if any). The configuration set this way is preserved. &beta_feature
 +
 +Use ''/batchsettings'' to mass-modify stored sites. The first argument is a mask to select sites to modify. Use a syntax of [[file_mask#basic|basic file masks]]. You can also use local [[file_mask#path|path mask]] to select sites based on their folders. The other arguments define new values for site settings. Use the same syntax as for ''[[commandline#session|/rawsettings]]''.
 +
 +For example to configure a proxy for all sites in a "clients" folder, use:
 +
 +<code batch>
 +winscp.exe /batchsettings clients\* ProxyMethod=3 ProxyHost=proxy
 +</code>
==== Auxiliary ==== ==== Auxiliary ====

Last modified: by martin