Disable "New folder" history? [MkDirHistory]

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
chea
Junior Member
Junior Member
Posts: 47
Joined: 2005-07-23, 11:42 UTC

Disable "New folder" history? [MkDirHistory]

Post by *chea »

Is there a way to disable this?
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Just add parameter RedirectSection=* to your section [MkDirHistory] and restart TC to disable adding new items to that section.
Help section 4.b will help to understand why it works. :wink:
chea
Junior Member
Junior Member
Posts: 47
Joined: 2005-07-23, 11:42 UTC

Post by *chea »

That works for me, thanks.
User avatar
white
Power Member
Power Member
Posts: 6016
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post by *white »

MVV wrote:Just add parameter RedirectSection=* to your section [MkDirHistory] and restart TC to disable adding new items to that section.
Help section 4.b will help to understand why it works. :wink:
Seems to me that the behavior of RedirectSection=* is undocumented/undefined. Like other invalid entries like:
RedirectSection=.
RedirectSection=\
RedirectSection=|


If the null device is installed one could also use:
RedirectSection=nul

Alternatively one could redirect to a file which is readonly. For example create a 0 byte file named "section redirect readonly.ini" in the folder where your main ini is stored and change the file attributes of this file to make the file readonly. Then use:
RedirectSection=section redirect readonly.ini

You can also use the last method to create a fixed prefined history.


My suggestion for Christian is to implement a new value -1 indicating that a section is disabled. So people could use:
RedirectSection=-1
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

white,
Yes, it is undocumented, you only need to specify invalid path to a file.
Post Reply