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.
Environment variables reference
Moderators: Hacker, petermad, Stefan2, white
Environment variables reference
Regards,
Sergio
TCmd license #12059
TC11.03x86/x64 | Win11 Pro
Sergio
TCmd license #12059
TC11.03x86/x64 | Win11 Pro
List of system and totalcommander environment variables
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:(Copy this code >>> right click at the TC tool bar >>> Paste)
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
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
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
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
This is of great help. Thanks @petermad. Thanks @Stefan2 for the 1st method too.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
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
Sergio
TCmd license #12059
TC11.03x86/x64 | Win11 Pro
Re: Environment variables reference
Er, doesn't the FS plugin http://www.totalcmd.net/plugring/envvar.html do what you need?"Villampiro" - I find myself everytime trying to guess a name or whether a given variable may exist or not.