| View previous topic :: View next topic |
| Author |
Message |
Helix751 Member


Joined: 16 Jun 2004 Posts: 118
|
Posted: Mon Jul 09, 2012 7:56 am Post subject: Environment variables reference |
|
|
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 |
|
| Back to top |
|
 |
Stefan2 Senior Member


Joined: 13 Sep 2007 Posts: 252 Location: Germany, EU
|
Posted: Mon Jul 09, 2012 1:08 pm Post subject: 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:
| Code: | TOTALCMD#BAR#DATA
%comspec%
/k set commander_
%comspec%
-1 | (Copy this code >>> right click at the TC tool bar >>> Paste) _________________ Greetings, Stefan. |
|
| Back to top |
|
 |
petermad Power Member


Joined: 05 Feb 2003 Posts: 5351 Location: Valsted, Denmark
|
Posted: Mon Jul 09, 2012 1:40 pm Post subject: |
|
|
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 _________________ #524
Danish Total Commander Translator
Windows XP Home 32bit SP3 & Windows 7 Home Premium 64bit SP1 and Windows 8. TC 8.01 32 + 64bit
Get Extended Total Commander Menus |
|
| Back to top |
|
 |
Helix751 Member


Joined: 16 Jun 2004 Posts: 118
|
Posted: Mon Jul 09, 2012 3:03 pm Post subject: |
|
|
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 |
|
| Back to top |
|
 |
SQUIRE Senior Member


Joined: 16 Jun 2005 Posts: 368
|
Posted: Mon Jul 09, 2012 8:56 pm Post subject: Re: Environment variables reference |
|
|
| Quote: | | "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? _________________ He may look like an idiot and talk like an idiot but don't let that fool you. He really is an idiot. |
|
| Back to top |
|
 |
|