Error in english TOTALCMD.HLP for TC 7.02a (confirmed)

Bug reports will be moved here when the described bug has been fixed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
kotlomoy
Member
Member
Posts: 100
Joined: 2008-03-09, 07:27 UTC

Error in english TOTALCMD.HLP for TC 7.02a (confirmed)

Post by *kotlomoy »

I have to put UseIniInProgramDir key into wincmd.ini to make it working, even when i'm using RedirectSection for [Configuration].
Is it normal?
Last edited by kotlomoy on 2008-03-18, 12:10 UTC, edited 2 times in total.
#213083 Single user license
BranchViewExtended
User avatar
m^2
Power Member
Power Member
Posts: 1413
Joined: 2006-07-12, 10:02 UTC
Location: Poland
Contact:

Post by *m^2 »

[Configuration] is the only section that cannot be redirected.
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

I have to put UseIniInProgramDir key into wincmd.ini to make it working
This is clearly stated in TC help. The sense of that key is to overwrite the standard order of TC INI reading behaviour.
[Configuration] is the only section that cannot be redirected.
This is wrong:
HISTORY.TXT wrote:17.05.06 Added: ini section [Configuration] can now also be redirected via RedirectSection= option. The options AlternateUserIni= and UseIniInProgramDir= will always be read from the non-redirected file, though
Icfu
This account is for sale
User avatar
kotlomoy
Member
Member
Posts: 100
Joined: 2008-03-09, 07:27 UTC

Post by *kotlomoy »

m^2 wrote:[Configuration] is the only section that cannot be redirected.
You are wrong. Consider my wincmd.ini:

Code: Select all

[Configuration]
UseIniInProgramDir=7
AlternateUserIni=user.ini
RedirectSection=Configuration.ini

[Layout]
RedirectSection=Layout.ini

[Packer]
RedirectSection=Packer.ini

[Confirmation]
RedirectSection=Confirmation.ini

[Extensions]
RedirectSection=Extensions.ini

[Shortcuts]
RedirectSection=Shortcuts.ini

[PackerPlugins]
RedirectSection=PackerPlugins.ini

[FileSystemPlugins]
RedirectSection=FileSystemPlugins.ini

[ListerPlugins]
RedirectSection=ListerPlugins.ini

[ContentPlugins]
RedirectSection=ContentPlugins.ini
It works fine, but UseIniInProgramDir=7 is no redirectable
#213083 Single user license
BranchViewExtended
User avatar
kotlomoy
Member
Member
Posts: 100
Joined: 2008-03-09, 07:27 UTC

Post by *kotlomoy »

I was late one second :)
icfu wrote:This is clearly stated in TC help. The sense of that key is to overwrite the standard order of TC INI reading behaviour.
It's not stated in TOTALCMD.HLP at all. All I found about UseIniInProgramDir:
TOTALCMD.HLP wrote:UseIniInProgramDir=0 This variable will only be read if the wincmd.ini is located in the same dir as the program.
It is the sum of the following values:
1: Use wincmd.ini in program dir if no other location is set via registry or parameters
2: Use wcx_ftp.ini in program dir if no other location is set via registry or parameters
4: Override registry settings (but not command line parameters)
So it looks like the bug in TOTALCMD.HLP?
#213083 Single user license
BranchViewExtended
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

What part don't you understand?
This variable will only be read if the wincmd.ini is located in the same dir as the program.

Icfu
This account is for sale
User avatar
m^2
Power Member
Power Member
Posts: 1413
Joined: 2006-07-12, 10:02 UTC
Location: Poland
Contact:

Post by *m^2 »

icfu wrote:
[Configuration] is the only section that cannot be redirected.
This is wrong:
HISTORY.TXT wrote:17.05.06 Added: ini section [Configuration] can now also be redirected via RedirectSection= option. The options AlternateUserIni= and UseIniInProgramDir= will always be read from the non-redirected file, though
Icfu
:oops:
User avatar
kotlomoy
Member
Member
Posts: 100
Joined: 2008-03-09, 07:27 UTC

Post by *kotlomoy »

icfu wrote:What part don't you understand?
This variable will only be read if the wincmd.ini is located in the same dir as the program.

Icfu
This part is not related to problem at all.

Ok, i'll try to explain.
Consider situation:
1. wincmd.ini is located in the same dir as the program.
2. [Configuration] section is redirected to Configuration.ini in the same dir as the program
2. UseIniInProgramDir is added into [Configuration] in Configuration.ini in the same dir as the program
In that situation, wincmd.ini is located in the same dir as the program., like TOTALCMD.HLP and you said, ok. But variable is not read, and nothing works.

It was my real problem.

Problem is: TOTALCMD.HLP not explained (like HISTORY.TXT does), that UseIniInProgramDir must be not redirected. IMHO, it's a mistake
#213083 Single user license
BranchViewExtended
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

You are right, the English translation is wrong! I have copy&pasted without checking it for errors, sorry...

In German TC help (which I usually use) it's more or less correctly described, though the syntax sucks as well:
Diese Variable wird nur gelesen, wenn sie sich in der Datei wincmd.ini im selben Verzeichnis wie das Programm befindet.
=> This variable will only be read if it's located in the file wincmd.ini in the same directory as the program.

Icfu
This account is for sale
User avatar
kotlomoy
Member
Member
Posts: 100
Joined: 2008-03-09, 07:27 UTC

Post by *kotlomoy »

icfu wrote:You are right, the English translation is wrong!
THX for confirmation :)
#213083 Single user license
BranchViewExtended
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48097
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

17.05.06 Added: ini section [Configuration] can now also be redirected via RedirectSection= option. The options AlternateUserIni= and UseIniInProgramDir= will always be read from the non-redirected file, though
I think that this makes it clear: UseIniInProgramDir= must be in wincmd.ini, not the redirected ini.
Author of Total Commander
https://www.ghisler.com
User avatar
kotlomoy
Member
Member
Posts: 100
Joined: 2008-03-09, 07:27 UTC

Post by *kotlomoy »

ghisler(Author) wrote:I think that this makes it clear: UseIniInProgramDir= must be in wincmd.ini, not the redirected ini.
Hmm, actually, the subject of this topic is changed, so the name of this topic changed too.

The old name was "UseIniInProgramDir not redirected via RedirectSection". But that was no bug in TC, but in TC help.

So, there is

Error in english translation of TOTALCMD.HLP for TC 7.02a.

With one confirmation
#213083 Single user license
BranchViewExtended
User avatar
Flint
Power Member
Power Member
Posts: 3487
Joined: 2003-10-27, 09:25 UTC
Location: Antalya, Turkey
Contact:

Post by *Flint »

The description of UseIniInProgramDir has been updated in 7.03.
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 10.52 / Win10 x64
Post Reply