How to delete history? like directory history, command history, etc?

English support forum

Moderators: Stefan2, white, sheep, Hacker

User avatar
Wilhelm M.
Power Member
Power Member
Posts: 767
Joined: 2003-06-05, 10:45 UTC

Re: How to delete history? like directory history, command history, etc?

Post by *Wilhelm M. » 2019-03-27, 15:24 UTC

If you have indeed unchecked the save options I cannot understand, how these entries get into the history.ini file. Strange. :roll:
Grüße/Regards,
Wilhelm

User avatar
petermad
Power Member
Power Member
Posts: 8367
Joined: 2003-02-05, 20:24 UTC
Location: Valsted, Denmark
Contact:

Re: How to delete history? like directory history, command history, etc?

Post by *petermad » 2019-03-27, 15:26 UTC

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:

Code: Select all

del C:\totalcmd\history.ini
start "Total Commander" /D"C:\totalcmd" C:\totalcmd\totalcmd.exe
The history.ini file has to be deleted before the start of TC with this approach.

You can also use:

Code: Select all

C:\totalcmd\totalcmd.exe
del C:\totalcmd\history.ini
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:

Code: Select all

[RightHistory]
RedirectSection=history.ini
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.
License #524 (1994)
Danish Total Commander Translator
TC 9.22a 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 64bit, 'Everything' 1.4.1.935 (x64) and TC 3.0b3 on Android 6.0
Get: Extended Total Commander Menus | PHSM-Calendar

Alexisback
Junior Member
Junior Member
Posts: 58
Joined: 2016-10-26, 20:04 UTC

Re: How to delete history? like directory history, command history, etc?

Post by *Alexisback » 2019-03-27, 17:07 UTC

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:

Code: Select all

del C:\totalcmd\history.ini
start "Total Commander" /D"C:\totalcmd" C:\totalcmd\totalcmd.exe
The history.ini file has to be deleted before the start of TC with this approach.
I have a portable version, even on a USB pen,
in the .bat file what is the path to find TC,
What should I write :|

User avatar
petermad
Power Member
Power Member
Posts: 8367
Joined: 2003-02-05, 20:24 UTC
Location: Valsted, Denmark
Contact:

Re: How to delete history? like directory history, command history, etc?

Post by *petermad » 2019-03-27, 17:26 UTC

What should I write
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.

The Help item in the Menu is to the far right side of the Menu bar.
License #524 (1994)
Danish Total Commander Translator
TC 9.22a 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 64bit, 'Everything' 1.4.1.935 (x64) and TC 3.0b3 on Android 6.0
Get: Extended Total Commander Menus | PHSM-Calendar

User avatar
HerbieH
Member
Member
Posts: 105
Joined: 2003-02-11, 10:04 UTC

Re: How to delete history? like directory history, command history, etc?

Post by *HerbieH » 2019-03-27, 23:50 UTC

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/
HerbieH*
-Keep on makin' music!

Alexisback
Junior Member
Junior Member
Posts: 58
Joined: 2016-10-26, 20:04 UTC

Re: How to delete history? like directory history, command history, etc?

Post by *Alexisback » 2019-03-28, 15:03 UTC

thank you for your suggestion,
thank you all for your help

Post Reply