FAQs: INI-History - Clear remove delete drop / INI Redirect Section

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
Stefan2
Power Member
Power Member
Posts: 4157
Joined: 2007-09-13, 22:20 UTC
Location: Europa

FAQs: INI-History - Clear remove delete drop / INI Redirect Section

Post by *Stefan2 »

RedirectSection

Q: How to wipe or delete all history? I mean history of commands, directories etc. and also history of searching in internal file lister. ALL!


A: You can redirect all history sections to separate INI and so simple removing of that file would clean history.
Therefore edit wincmd.ini in Notepad ("Help - About" tells where it is)


Read help section 4.b for redirection and history sections details.

Total Commander Help Index
4. Configuration and switches
b. INI-File settings: wincmd.ini, wcx_ftp.ini (for FTP)
RedirectSection= See description of AlternateUserIni.
Note: When placed in the [Configuration] section, all variables of this section will be redirected,
except for AlternateUserIni and UseIniInProgramDir, which will always be read from the main ini file.


AlternateUserIni=<somename.ini>
If present, 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].

These sections can be redirected individually, though:
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:
There are three possible values:
0: no redirect
1: redirect to ini file defined via AlternateUserIni=<alternate ini file.ini>
<ininame.ini>: redirect to that specific ini (Path or just file name of another ini file)

Note: you can redirect a section by just using "RedirectSection=" too, no need for "AlternateUserIni=" then.

Examples:

MVV wrote:You need to add special parameter RedirectSection=X:\Path\To\History.ini to every section you want to redirect and remove all other parameters, e.g.:

[MkDirHistory]
RedirectSection=%TEMP%\tc_history.ini
[SearchName]
RedirectSection=%TEMP%\tc_history.ini
[SearchIn]
RedirectSection=%TEMP%\tc_history.ini
[Selection]
RedirectSection=%TEMP%\tc_history.ini
[SearchText]
RedirectSection=%TEMP%\tc_history.ini
[RenameTemplates]
RedirectSection=%TEMP%\tc_history.ini
[RenameSearchReplace]
RedirectSection=%TEMP%\tc_history.ini
[RenameSearchFind]
RedirectSection=%TEMP%\tc_history.ini
[SplitPerFile]
RedirectSection=%TEMP%\tc_history.ini
; You should do this for all history sections

After restarting TC it will create all these sections in specified INI instead of main wincmd.ini.
So it will be enough to remove this single file to clear all history.
Button with command cmd /c @del "%TEMP%\tc_history.ini" will do it for you.

petermad wrote:[PackerPlugins]
RedirectSection=plugins.ini
[FileSystemPlugins]
RedirectSection=plugins.ini
[ListerPlugins]
RedirectSection=plugins.ini
[ContentPlugins]
RedirectSection=plugins.ini
[user]
RedirectSection=user.ini
[DirMenu]
RedirectSection=user.ini
[attrplugin]
RedirectSection=history.ini
[rename]
RedirectSection=history.ini
[SyncOptions]
RedirectSection=history.ini
[Selection]
RedirectSection=history.ini
[SearchName]
RedirectSection=history.ini
[SearchIn]
RedirectSection=history.ini
[SearchText]
RedirectSection=history.ini
[RenameTemplates]
RedirectSection=history.ini
[RenameSearchFind]
RedirectSection=history.ini
[RenameSearchReplace]
RedirectSection=history.ini
[left]
RedirectSection=history.ini
[right]
RedirectSection=history.ini
[lefttabs]
RedirectSection=history.ini
[righttabs]
RedirectSection=history.ini
[Command line history]
RedirectSection=history.ini
[RightHistory]
RedirectSection=history.ini
[LeftHistory]
RedirectSection=history.ini
[MkDirHistory]
RedirectSection=history.ini
[AllResolutions]
RedirectSection=user.ini
[640x480 (8x16)]
RedirectSection=user.ini
[800x600 (8x16)]
RedirectSection=user.ini
[1024x768 (8x16)]
RedirectSection=user.ini
[1152x864 (8x16)]
RedirectSection=user.ini
[1280x960 (8x16)]
RedirectSection=user.ini
[1280x1024 (8x16)]
RedirectSection=user.ini
[1400x1050 (8x16)]
RedirectSection=user.ini
[DisabledPlugins]
RedirectSection=plugins.ini
m^2 wrote:Every section can be redirected.

[Command line history]
RedirectSection=%COMMANDER_PATH%\..\Logs\history.ini
[RightHistory]
RedirectSection=%COMMANDER_PATH%\..\Logs\history.ini
[LeftHistory]
RedirectSection=%COMMANDER_PATH%\..\Logs\history.ini
[MkDirHistory]
RedirectSection=%COMMANDER_PATH%\..\Logs\history.ini
[Left]
RedirectSection=%COMMANDER_PATH%\..\Logs\history.ini
[Right]
RedirectSection=%COMMANDER_PATH%\..\Logs\history.ini
[LeftTabs]
RedirectSection=%COMMANDER_PATH%\..\Logs\history.ini
[RightTabs]
RedirectSection=%COMMANDER_PATH%\..\Logs\history.ini
[SearchName]
RedirectSection=%COMMANDER_PATH%\..\Logs\history.ini
[SearchIn]
RedirectSection=%COMMANDER_PATH%\..\Logs\history.ini
[SearchText]
RedirectSection=%COMMANDER_PATH%\..\Logs\history.ini
[RenameSearchFind]
RedirectSection=%COMMANDER_PATH%\..\Logs\history.ini
[RenameSearchReplace]
RedirectSection=%COMMANDER_PATH%\..\Logs\history.ini
[RenameTemplates]
RedirectSection=%COMMANDER_PATH%\..\Logs\history.ini
[Selection]
RedirectSection=%COMMANDER_PATH%\..\Logs\history.ini


[640x480 (8x16)]
RedirectSection=%COMMANDER_PATH%\..\cfg\TCCFG\640x480 (8x16).ini
[800x600 (8x16)]
RedirectSection=%COMMANDER_PATH%\..\cfg\TCCFG\800x600 (8x16).ini
[1024x768 (8x16)]
RedirectSection=%COMMANDER_PATH%\..\cfg\TCCFG\1024x768 (8x16).ini
[1280x960 (8x16)]
RedirectSection=%COMMANDER_PATH%\..\cfg\TCCFG\1280x960 (8x16).ini
[1400x1050 (8x16)]
RedirectSection=%COMMANDER_PATH%\..\cfg\TCCFG\1400x1050 (8x16).ini
[1600x1200 (8x16)]
RedirectSection=%COMMANDER_PATH%\..\cfg\TCCFG\1600x1200 (8x16).ini

[Alias]
RedirectSection=%COMMANDER_PATH%\..\cfg\TCCFG\Alias.ini

[CustomFields]
RedirectSection=%COMMANDER_PATH%\..\cfg\TCCFG\CustomFields.ini

[DirMenu]
RedirectSection=%COMMANDER_PATH%\..\cfg\TCCFG\DirMenu.ini

[HintsCustomField]
RedirectSection=%COMMANDER_PATH%\..\cfg\TCCFG\Hints.ini

[Shortcuts]
RedirectSection=%COMMANDER_PATH%\..\cfg\TCCFG\Shortcuts.ini

[ListerPlugins]
RedirectSection=%COMMANDER_PATH%\..\cfg\TCCFG\Plugins.ini
[PackerPlugins]
RedirectSection=%COMMANDER_PATH%\..\cfg\TCCFG\Plugins.ini
[FileSystemPlugins]
RedirectSection=%COMMANDER_PATH%\..\cfg\TCCFG\Plugins.ini
[ContentPlugins]
RedirectSection=%COMMANDER_PATH%\..\cfg\TCCFG\Plugins.ini

[Colors]
RedirectSection=%COMMANDER_PATH%\..\cfg\TCCFG\Colors2.ini
[Searches]
RedirectSection=%COMMANDER_PATH%\..\cfg\TCCFG\Searches.ini

Find more topics by searching "RedirectSection=", like
http://ghisler.ch/board/viewtopic.php?t=24111


You could also use system environment variable like:
RedirectSection=wincmdtmp_%USERNAME%.ini
RedirectSection=wincmdtmp_%COMPUTERNAME%.ini

ts4242 wrote:Try History Editor to clean TC history: http://bit.ly/hGhWZh




Finde mich:
Find me:
Post Reply