Differences

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

2006-10-23 2007-04-03
u3 (martin) 4.0 ini file lookup (martin)
Line 1: Line 1:
====== Configuration Storage ====== ====== Configuration Storage ======
-By default WinSCP stores its configuration into Windows registry. Optionally it can store it into an INI file. To switch the storage see //[[ui_pref_storage#configuration_storage|Storage tab]]// of Preferences window.  +WinSCP can store its configuration both to Windows registry and INI file. When installed, the configuration is stored by default into the registry. Portable versions use by default as INI file (if possible). To switch the storage see //[[ui_pref_storage#configuration_storage|Storage tab]]// of Preferences window.
- +
-On startup WinSCP looks for INI file in the directory from which it was started. The INI file must have an ''.INI'' extension and the same name as WinSCP executable. If it finds the INI file it loads configuration from it. If it does not find any, it uses the registry (of current user). This allows you to easily carry WinSCP with your [[config#portable_configuration|configuration on removable media or USB drive]]. +
- +
-You may also use INI file in different folder or with different name using [[commandline|/ini switch]].+
===== Removing Configuration ===== ===== Removing Configuration =====
Line 10: Line 6:
===== Transferring the Configuration ===== ===== Transferring the Configuration =====
-If you use registry as configuration storage, you may export/import following registry key to export/import the settings.  +You can export your configuration into an INI file using //Export// button on //[[ui_preferences|Preferences dialog]]//. To import the configuration on another location, copy the INI file into the same directory, where WinSCP is installed. You can than change the storage to make WinSCP import the settings from an INI file to the registry.
-<code> +
-[HKEY_CURRENT_USER\Software\Martin Prikryl\WinSCP 2]  +
-</code>+
-If you do not know how to work with registry, switch to INI file. +===== Portable Configuration ===== 
 +On startup standalone version of WinSCP looks for INI file in the directory from which it was started. The INI file must have an ''.ini'' extension and the same name as WinSCP executable. If it does not find any, it tries to create one with default configuration. If it fails to do so, it uses registry. This allows you to easily carry WinSCP with your configuration on removable media or USB drive.
-If you use INI file as configuration storage, copy the ''winscp3.ini'' file from WinSCP installation directory on your source computer to installation directory on destination computer. The file is typically in following directory:  +You may also use INI file in different folder or with different name using [[commandline|/ini switch]].
-&lt;code> +
-c:\program files\winscp3\winscp3.ini  +
-</code>+
-This file is automatically created when you switch to INI file configuration. 
- 
-===== Portable Configuration ===== 
You can configure WinSCP to be completely portable, i.e. make it store all its files and configuration in one place, portable drive (such as USB drive). You can also get [[u3|WinSCP U3 package]], what is preconfigured version of WinSCP for portable usage on U3 USB drive. You can configure WinSCP to be completely portable, i.e. make it store all its files and configuration in one place, portable drive (such as USB drive). You can also get [[u3|WinSCP U3 package]], what is preconfigured version of WinSCP for portable usage on U3 USB drive.
-First, you need to turn to [[config#configuration_storage|INI file configuration]]. In addition to configuration, WinSCP stores by default some files to local drives:+WinSCP stores by default some files to local drives:
  * Random seed file (file ''winscp.rnd'' in yours //Documents and Settings// folder);   * Random seed file (file ''winscp.rnd'' in yours //Documents and Settings// folder);
  * [[temp_folders|Temporary files]] (system temporary folder).   * [[temp_folders|Temporary files]] (system temporary folder).

Last modified: by martin