%COMMANDER_INI%\..\ in dropdown menu don't refer actual path

English support forum

Moderators: Hacker, petermad, Stefan2, white

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

%COMMANDER_INI%\..\ in dropdown menu don't refer actual path

Post by *HBB »

To Christian Ghisler,

I want to show you a behaviour of TC in button editor.
I asked this in this topic and discussed with karlchen.

Situation of TC is as follows (WinXPPRO+SP3) :
- Ini location : P:\Files\Programs\TotalCmd\wincmd.ini
- Program Path : P:\Programs\TotalCmd\Win32 (No installation, portable usage)
- Execution : P:\Programs\TotalCmd\Win32\TOTALCMD.EXE /I=%COMMANDER_DRIVE%\Files\Programs\TotalCmd\wincmd.ini

As you see in this picture, Active panel shows C:\Program Files\Microsoft Office
In Button Editor, when I write %COMMANDER_INI%\..\ into Start path, the dropdown menu list the directories of C:\Program Files!..

In fact, I hoped that the drop down menu should list the directories of P:\Files\Programs\TotalCmd, since it is the folder in which wincmd.ini takes place. But not...

Is this a bug?

Regards
User avatar
karlchen
Power Member
Power Member
Posts: 4605
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

Hi, HBB.

The dropdown list is not shown by the field start path. It is shown by the field icon file.

By default, whenever you create a button, T.C. will fill the field icon file with the fully qualified filename which it finds in the field Command.

So you must have put the string "%COMMANDER_INI%\..\" into the field Icon File using copy and paste yourself.

But confirmed:
Provided the field icon file does not hold a valid filename, but a foldername like "%COMMANDER_INI%\..\", T.C. seems to get confused. It does not seem to expand %COMMANDER_INI%\..\ and appends foldernames to this string which it finds in the current folder. Here it was not the root folder, but folders found in C:\Utils instead.

Please, click on the [>>] arrow on the right hand side of Icon File, walk through the offered foldertree and select a valid filename.

Kind regards,
Karl
HBB
Senior Member
Senior Member
Posts: 295
Joined: 2008-05-05, 21:31 UTC

Post by *HBB »

Dear Karl,
The dropdown list is not shown by the field start path
Please look at the picture : Click to see picture
You will see there a dropdown menu in start path. I do not know why you don't see.
Please, click on the [>>] arrow on the right hand side of Icon File, walk through the offered foldertree and select a valid filename
Of course I know it. My aim is here to warn about bugs.
For example, this wrong menu caused to misunderstanding for me about the behaviour of %COMMANDER_INI%\..\. This may mislead some other users like me.

I like TC and I am trying to contribute to TC for the improvements of it.

Best regards
User avatar
karlchen
Power Member
Power Member
Posts: 4605
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

HBB wrote:Please look at the picture : Click to see picture
You bet I have done so before writing my reply.
You will see there a dropdown menu in start path. I do not know why you don't see.
Because I tested it here to make sure. And the drop down list will not be displayed as long as the focus is inside the "start path" field, but only once you have clicked inside the "icon file" field and have put the "%COMMANDER_INI%\.." path in it.
My aim is here to warn about bugs.
I assume that Christian will have read your posts.
Yet, it is a minor nuisance only. No real damage can be done. So it may be fixed one day sooner or later I guess.

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

Post by *MVV »

Well, it is strange why TC expands path "%COMMANDER_PATH%\" correctly but for "%COMMANDER_PATH%\..\" expands %COMMANDER_PATH% like current directory. Well, sure Christian will fix it in next version. :)
HBB
Senior Member
Senior Member
Posts: 295
Joined: 2008-05-05, 21:31 UTC

Post by *HBB »

MVV,

I am sure it will be fixed.

Because of the heavy works and changes for TC7.5, these kind of bugs are normal. I believe that the bugs will be minimized day to day when the users inform.

Additionaly \COMMANDER_INI\ is an excellent feature according to me. Very thanks to Ghisler for it.

Regards
User avatar
karlchen
Power Member
Power Member
Posts: 4605
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

Hi, folks.
history.txt wrote:17.09.09 Fixed: Auto-complete: Handle special case: %envvar%\..\
I can confirm that this little glitch has really been fixed.

Total Commander 7.50a (24-Sept-2009)
Windows Vista Home Premium,32 bit

Side note
"\COMMANDER_INI" is no feature at all. In case on the root folder of a drive there is a folder named COMMANDER_INI, the quoted string would point there. That's all.
"%COMMANDER_INI%", if this was meant really, is not a feature either, but a T.C. internal environment variable which holds the fully qualified filename of the wincmd.ini file which the running T.C. instance is using. :idea:


Kind regards,
Karl
Post Reply