Environment variables & Tabs

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Majkyy
Junior Member
Junior Member
Posts: 3
Joined: 2011-03-04, 17:42 UTC

Environment variables & Tabs

Post by *Majkyy »

Hi,

I'm a SW developer from a middle size company (bought 100+ TC licenses :-)) and this one improvement in TC would make our life much easier:

We'd like Tabs to support system variables in their path. Example: Tab named "System32" would point to %WinDir%system32 and the full path would be resolved every time I switch to the Tab.

Proposal: editing manually the *.tab file to change the fixed path for something with the environment variable is sufficient way how to specify the variable path.

Bonus: it would be great it TC reflected change of variable value @ run time without restart needed, but I know it's not easy to do.

Thanks for considering this,
Michal
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50873
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

This is supported, I just tried it - but you forgot a backslash:
%WinDir%\system32

However, when TC saves the tabs, the variable is lost.
Author of Total Commander
https://www.ghisler.com
Majkyy
Junior Member
Junior Member
Posts: 3
Joined: 2011-03-04, 17:42 UTC

Post by *Majkyy »

Yes, the problem is that from the moment tabs are saved again, e.g by selecting Configuration/Save settings, the environment variables are lost.
Can you possibly make a simple modification to maintain the variables when saving tabs?

The problem starts to be painful in this scenario: ~10 VMs run TC from one share on a server. Each VM has a different system variables defined and wants to use tabs to quickly access directories. Whenever any VM saves the tabs, these get all screwed up for other VMs :(
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50873
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I will check whether this could be done for locked tabs. No chance for unlocked tabs, because the user can change directories (and multiple variables could match parts of the path).
Author of Total Commander
https://www.ghisler.com
Majkyy
Junior Member
Junior Member
Posts: 3
Joined: 2011-03-04, 17:42 UTC

Post by *Majkyy »

Having this fixed just for locked tabs is fully sufficient, thanks.
Post Reply