Environment variables reference

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
Helix751
Senior Member
Senior Member
Posts: 241
Joined: 2004-06-16, 21:16 UTC
Location: Chile

Environment variables reference

Post by *Helix751 »

I have always used Env vars for folder shortcuts, button and menu parameters (mainly for using TC across my work laptop & personal desktop with minimum tweaking), but my problem has always been which env vars are available and their correct syntax. I find myself everytime trying to guess a name or whether a given variable may exist or not.

I know there's always the possibility to browse countless forum postings to try to find one that lists them all, but it would REALLY help to have them:

1. Included in TC's Help system
2. Indexed in the help system, so a simple search for 'environment variables' or just 'variables' would show them as results.

A reference list with internal and Windows (session and system) variables usable from within TC would really help.
Regards,
Sergio

TCmd license #12059
TC11.03x86/x64 | Win11 Pro
User avatar
Stefan2
Power Member
Power Member
Posts: 4281
Joined: 2007-09-13, 22:20 UTC
Location: Europa

List of system and totalcommander environment variables

Post by *Stefan2 »

To see the system environment variables
valid for the currently used operating system
open an DOS-Box and type "set<enter>"

To see the TC own environment variables
open an DOS-Box from within TotalCommander.
For example add an new tool bar button
with %comspec% as command. Then enter SET there.
Or use SET as parameter immediately in the button configuration like:

Code: Select all

TOTALCMD#BAR#DATA
%comspec%
/k set commander_
%comspec%



-1
(Copy this code >>> right click at the TC tool bar >>> Paste)
User avatar
petermad
Power Member
Power Member
Posts: 16152
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

But then there are the pseudo environment variables - they don't show up with the SET command.

Here is a reference: http://www.ghisler.ch/wiki/index.php/Navigation
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Helix751
Senior Member
Senior Member
Posts: 241
Joined: 2004-06-16, 21:16 UTC
Location: Chile

Post by *Helix751 »

petermad wrote:But then there are the pseudo environment variables - they don't show up with the SET command.

Here is a reference: http://www.ghisler.ch/wiki/index.php/Navigation
This is of great help. Thanks @petermad. Thanks @Stefan2 for the 1st method too.

Anyway, I believe this info should be included as an entry in TC's help system. It's non obvious, given the current assortment of variables, and syntax is indeed relevant.
Regards,
Sergio

TCmd license #12059
TC11.03x86/x64 | Win11 Pro
User avatar
SQUIRE
Senior Member
Senior Member
Posts: 373
Joined: 2005-06-16, 18:07 UTC

Re: Environment variables reference

Post by *SQUIRE »

"Villampiro" - I find myself everytime trying to guess a name or whether a given variable may exist or not.
Er, doesn't the FS plugin http://www.totalcmd.net/plugring/envvar.html do what you need?
Post Reply