Total Commander Forum Index Total Commander
Forum - Public Discussion and Support
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Environment variables reference

 
Post new topic   Reply to topic    Total Commander Forum Index -> Total Commander (English) Printable version
View previous topic :: View next topic  
Author Message
Helix751
Member
Member


Joined: 16 Jun 2004
Posts: 118

PostPosted: Mon Jul 09, 2012 7:56 am    Post subject: Environment variables reference Reply with quote

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
View user's profile Send private message Send e-mail
Stefan2
Senior Member
Senior Member


Joined: 13 Sep 2007
Posts: 252
Location: Germany, EU

PostPosted: Mon Jul 09, 2012 1:08 pm    Post subject: List of system and totalcommander environment variables Reply with quote

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
View user's profile Send private message
petermad
Power Member
Power Member


Joined: 05 Feb 2003
Posts: 5351
Location: Valsted, Denmark

PostPosted: Mon Jul 09, 2012 1:40 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Helix751
Member
Member


Joined: 16 Jun 2004
Posts: 118

PostPosted: Mon Jul 09, 2012 3:03 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Send e-mail
SQUIRE
Senior Member
Senior Member


Joined: 16 Jun 2005
Posts: 368

PostPosted: Mon Jul 09, 2012 8:56 pm    Post subject: Re: Environment variables reference Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Total Commander Forum Index -> Total Commander (English) All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Impressum: This site is maintained by Ghisler Software GmbH

Using phpBB © 2001-2005 phpBB Group