How much does TC go in deep for RedirectSection

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
HBB
Senior Member
Senior Member
Posts: 295
Joined: 2008-05-05, 21:31 UTC

How much does TC go in deep for RedirectSection

Post by *HBB »

Hello friends,

I am just trying to learn how RedirectSection is used.
RedirectSection feature also seems to be excellent for using TC over LAN for multi-user usage.

I have a problem. Let me explain it in an example as follows :

In wincmd.ini :
[Configuration]
AlternateUserIni=wincmd_User.ini
:
In wincmd_user.ini :
:
[LeftHistory]
RedirectSection=wincmd_User_History.ini
:
Even if there is no section [LeftHistory] in wincmd.ini :
- TC always try to write into wincmd.ini
- TC does not write into wincmd_User_History.ini

According to help in TC, when AlternateUserIni=<somename.ini> is defined, TC tries to write the settings into <somename.ini> if there is no related section in wincmd.ini

I expected that TC write the left history into the section [LeftHistory] in wincmd_User_History.ini. But not...

Does TC support one level depth in redirection?

Best wishes.
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Maybe TC doesn't support this. Why not just to put into wincmd.ini section LeftHistory?
[LeftHistory]
RedirectSection=wincmd_User_History.ini
HBB
Senior Member
Senior Member
Posts: 295
Joined: 2008-05-05, 21:31 UTC

Post by *HBB »

MVV, Thank you for reply
Why not just to put into wincmd.ini section LeftHistory?
In our company, we are using TC over server. By RedirectSection, users get main sections from TC (as read only) and write their own spesific sections into their ini files.

Since the users are not so familier to TC, I always add and control plugins by myself.

Edited >>> you are right, currently, I do it as you suggest.

Regards
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50918
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

RedirectSection only works in wincmd.ini, not in the redirected files - this could lead to infinite loops where one ini file could point to another, and that would point back to the first. So you can put
[LeftHistory]
RedirectSection=wincmd_User_History.ini
in the main wincmd.ini to override the setting in AlternateUserIni for just that section.
Author of Total Commander
https://www.ghisler.com
HBB
Senior Member
Senior Member
Posts: 295
Joined: 2008-05-05, 21:31 UTC

Post by *HBB »

To Ghisler,

Thank you for the clarification.

Regards
Post Reply