How to delete history? like directory history, command history, etc?
Moderators: white, Hacker, petermad, Stefan2
- Wilhelm M.
- Power Member
- Posts: 1000
- Joined: 2003-06-05, 10:45 UTC
Re: How to delete history? like directory history, command history, etc?
If you have indeed unchecked the save options I cannot understand, how these entries get into the history.ini file. Strange.
Grüße/Regards,
Wilhelm
Wilhelm
Re: How to delete history? like directory history, command history, etc?
2Alexisback
Several of those redirected sections is written no matter what setting you use for Options -> Operation -> Save on exit
The only sections that are affected by the "Save on exit setting" are:
[left]
[right]
[lefttabs]
[righttabs]
[RightHistory]
[LeftHistory]
[Command line history]
if you want to delete the history.txt file automatically, make a totalcmd.bat file in Notepad like this:
The history.ini file has to be deleted before the start of TC with this approach.
You can also use:
but this will leave a DOS console window open during the TC session (waiting to delete history.ini when you close TC) - I think such an open DOS console is annoying. If you make a .lnk file pointing to the totalcmd.bat file the you can set the lnk up to run the DOS console minimized.
If you don't have your TC installen in c:\totalcmd\ you must adjust the code above accordingly. If your TC is in "C:\Program files (x86)\totalcmd", then your history.ini will most likely be placed in cd %$APPDATA%\Ghisler so you have to change the path to history.ini to that.
Notice, when you put in sections like:
in your wincmd.ini file, then you have to delete the [RightHistory] section that might already be there, you cannot have the same section two times in the wincmd.ini file.
Several of those redirected sections is written no matter what setting you use for Options -> Operation -> Save on exit
The only sections that are affected by the "Save on exit setting" are:
[left]
[right]
[lefttabs]
[righttabs]
[RightHistory]
[LeftHistory]
[Command line history]
if you want to delete the history.txt file automatically, make a totalcmd.bat file in Notepad like this:
Code: Select all
del C:\totalcmd\history.ini
start "Total Commander" /D"C:\totalcmd" C:\totalcmd\totalcmd.exe
You can also use:
Code: Select all
C:\totalcmd\totalcmd.exe
del C:\totalcmd\history.ini
If you don't have your TC installen in c:\totalcmd\ you must adjust the code above accordingly. If your TC is in "C:\Program files (x86)\totalcmd", then your history.ini will most likely be placed in cd %$APPDATA%\Ghisler so you have to change the path to history.ini to that.
Notice, when you put in sections like:
Code: Select all
[RightHistory]
RedirectSection=history.ini
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
-
- Junior Member
- Posts: 80
- Joined: 2016-10-26, 20:04 UTC
Re: How to delete history? like directory history, command history, etc?
I have a portable version, even on a USB pen,petermad wrote: ↑2019-03-27, 15:26 UTC 2Alexisback
if you want to delete the history.txt file automatically, make a totalcmd.bat file in Notepad like this:The history.ini file has to be deleted before the start of TC with this approach.Code: Select all
del C:\totalcmd\history.ini start "Total Commander" /D"C:\totalcmd" C:\totalcmd\totalcmd.exe
in the .bat file what is the path to find TC,
What should I write
Re: How to delete history? like directory history, command history, etc?
You can find the path to your ini-files (and for a portable version for totalcmd.exe as well) by the Menu: "Help" -> "About total Commander" - the last to lines (INI-files) gives the path.What should I write
The Help item in the Menu is to the far right side of the Menu bar.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Re: How to delete history? like directory history, command history, etc?
I have been using 'Ultra TC Editor's 'History Editor' for years to delete both specific parts and all parts of the Total Commander history.
There is also a (not well known) command line option, which works perfectly for automatically deletion, without opening the graphic user interface.
http://utceditors.totalcmd.net/
There is also a (not well known) command line option, which works perfectly for automatically deletion, without opening the graphic user interface.
http://utceditors.totalcmd.net/
HerbieH*
-Keep on makin' music!
-Keep on makin' music!
-
- Junior Member
- Posts: 80
- Joined: 2016-10-26, 20:04 UTC
Re: How to delete history? like directory history, command history, etc?
thank you for your suggestion,
thank you all for your help
thank you all for your help