redirect [Configuration] section

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: white, Hacker, petermad, Stefan2

User avatar
Sir_SiLvA
Power Member
Power Member
Posts: 3297
Joined: 2003-05-06, 11:46 UTC

Re: Tools too !

Post by *Sir_SiLvA »

Clo wrote:• I agree with your remarks. In example : not only plugins have issues with redirections… Tools have too !
- Just try to use TC Plugman with plugins sections redirected into covering INIs… :(
Then the Tools have to be updated too - it isnt hard to impliment the redirection into TC Plugman ie...
And till v7 final the Plugin/Tool authors should be able to update there tools/plugins...
Hoecker sie sind raus!
User avatar
petermad
Power Member
Power Member
Posts: 14808
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

I don't see the big deal. Nobody forces anyone to redirect, so if your tools and plugins don't work with it, then don't redirect.

I am sure that most of the serious plugin/tool writers will implement support for redirection soon.

The only problem occurs after a while if you still have old plugins that are not upated anymore and don't work with redirection.

I have redirected all my plugins (about 30) and so far I don't have any problems. But off course, that is no consolation for those whose favourite plugins doesn't work with redirection.
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
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

2Ghisler
Please tell me what to do in my tool: when I see
RedirectSection=<Filename without path>

what path do I need to substitute here to get that file? %Commander_path%? Path to wincmd.ini? Please specify this...
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

Yes and what about relative paths?
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

2Lefteous
Please, no relative paths!
If path doesn't contain '\', I can just append some path; what to do if path is smth like '..\Plugins.ini' ... path expanding will be hard...
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2Alextp
I didn't request anything. This has been just a question. I guess we have to support whatever is supported by TC.
User avatar
ts4242
Power Member
Power Member
Posts: 2081
Joined: 2004-02-02, 20:08 UTC
Contact:

Post by *ts4242 »

Alextp wrote:2Ghisler
Please tell me what to do in my tool: when I see
RedirectSection=<Filename without path>
AFAIK if RedirectSection=<Filename without path> is present then TC will save the file in the same wincmd.ini folder so you can get the path from %Commander_INI%
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

if RedirectSection=<Filename without path> is present then TC will save the file in the same wincmd.ini folder
Yes, this is correct.
Author of Total Commander
https://www.ghisler.com
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

And what about relative paths?
User avatar
ts4242
Power Member
Power Member
Posts: 2081
Joined: 2004-02-02, 20:08 UTC
Contact:

Post by *ts4242 »

Alextp wrote:And what about relative paths?
currently relative path is not supported
try this

Code: Select all

[layout]
redirectsection=..\layout.ini
do some changes in options layout page, TC creates layout.ini in the root of C drive although TC is installed in D:\totalcmd_pb71
when restart TC it will not recognize ..\layout.ini and it will load its default layout settings
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

2ts4242
Ok, good. There is less work for me (with TC Plugman).
User avatar
petermad
Power Member
Power Member
Posts: 14808
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

This line in history.txt in TC7pb2 still needs to be changed:
28.02.06 Added: wincmd.ini: In each section except for [Configuration], an entry RedirectSection= will instruct tc to redirect(or not) this section to other ini: Values: 0=no redirect, 1=redirect to AlternateUserIni=, <ininame> redirect to that specific ini
the last part of it is nonsense.

Should be something like:

Values: 0=no redirect, 1=redirect to AlternateUserIni, <ininame>=redirect to that specific 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
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Why is it nonsense? It does exactly what is described here!
Author of Total Commander
https://www.ghisler.com
User avatar
Flint
Power Member
Power Member
Posts: 3487
Joined: 2003-10-27, 09:25 UTC
Location: Antalya, Turkey
Contact:

Post by *Flint »

ghisler(Author) wrote:It does exactly what is described here!
It's the form of the description that is the problem, not the description itself.
Current:
Values: 0=no redirect, 1=redirect to AlternateUserIni=, <ininame> redirect to that specific ini
Suggested:
Values: 0=no redirect, 1=redirect to AlternateUserIni, <ininame>=redirect to that specific ini
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 10.52 / Win10 x64
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Well, the wincmd.ini entry is
AlternateUserIni=something

and not

<ininame>=something...
Author of Total Commander
https://www.ghisler.com
Post Reply