tab-variables overwritten in wincmd.ini

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

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
Rein de Jong
Senior Member
Senior Member
Posts: 394
Joined: 2005-01-30, 20:26 UTC
Location: NL
Contact:

tab-variables overwritten in wincmd.ini

Post by *Rein de Jong »

Hi,

When using the variables %windir% and %COMMANDER_PATH% in tab files or initially in the ini-file, they work.

see: http://ghisler.ch/board/viewtopic.php?t=16780&highlight=tab+commanderpath

But when saving it to a new tab the substituted dir is placed. But worse, in wincmd.ini the variable is overwritten by the actual path. That’s annoying.

Issue discovered by Dutch user. see: http://ghisler.ch/board/viewtopic.php?t=18246
Groetjes/
______/Rein

--- Moderator NL-forum ---
zie ook: https://www.reindejong.nl/totcmd
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

http://www.ghisler.ch/board/viewtopic.php?p=132303#132303
HISTORY.TXT wrote:02.09.07 Added: .tab files now also support environment variables like %temp% in path fields
Icfu
This account is for sale
User avatar
Rein de Jong
Senior Member
Senior Member
Posts: 394
Joined: 2005-01-30, 20:26 UTC
Location: NL
Contact:

Post by *Rein de Jong »

2icfu
I know. You are referring to the same tread I do. But the variable %xxxx% is _overwritten_ with the actual path. Also when you do a save to .tab.

Try this in wincmd.ini

Code: Select all

[lefttabs]
0_path=%COMMANDER_PATH%
0_options=1|3|1|0|0|1|0
1_path=%windir%
1_options=1|3|1|0|0|1|0
activetab=2
After a close and restart of TC it is changed to:

Code: Select all

[lefttabs]
0_path=D:\Util\totalcmd\
0_options=1|3|1|0|0|1|0
1_path=C:\Windows\
1_options=1|3|1|0|0|1|0
activetab=2
Groetjes/
______/Rein

--- Moderator NL-forum ---
zie ook: https://www.reindejong.nl/totcmd
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

ghisler has clearly stated there that env vars will be overwritten when saving, they are only supported when reading.

Icfu
This account is for sale
User avatar
Rein de Jong
Senior Member
Senior Member
Posts: 394
Joined: 2005-01-30, 20:26 UTC
Location: NL
Contact:

Post by *Rein de Jong »

2icfu
You are right. It's a pitty. :(
Groetjes/
______/Rein

--- Moderator NL-forum ---
zie ook: https://www.reindejong.nl/totcmd
Post Reply