Maybe RedirectSection could help you:
Using multiple ini files
There are two options which allow to redirect one or more section from wincmd.ini to other files, e.g. to make the main wincmd.ini read only. It's also possible to quickly delete volatile data like directory and command line history by putting them in a separate file, which can then be deleted regularly.
1. Global option in section [Configuration]:
AlternateUserIni=<somename.ini>
If present in section [Configuration], it will redirect storing of all user-changeable sections to an alternate ini file (in this example, somename.ini), except for the following sections: [Configuration], [Layout], [Packer], [Confirmation], [Extensions], [Associations], [Shortcuts], [ShortcutsWin], [PackerPlugins], [FileSystemPlugins], [ListerPlugins], [ContentPlugins].
2. All sections can be redirected individually:
In each section, an entry
RedirectSection=
can be added to change the default behaviour. It will allow to redirect (or not) this section to another ini file:
Possible values:
0: no redirect even if the section would be redirected by AlternateUserIni
1: redirect to ini file defined via AlternateUserIni=<alternate ini file.ini>
<ininame.ini>: redirect to that specific ini
To deactivate a section (e.g. one of the histories), redirect that section to a read-only file.
Statistics: Posted by petermad — 2024-02-06, 09:38 UTC