environment variables

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
solid
Power Member
Power Member
Posts: 749
Joined: 2004-08-09, 11:20 UTC

environment variables

Post by *solid »

What environment variables does TC support?
So far, I've found
%COMMANDER_PATH%
%$APPDATA%,
%$FONTS%,
%$DESKTOP%,
%$PERSONAL%,
%$PROGRAMS%,
%$STARTMENU%,
%$STARTUP%

Are those all, or there is more somewhere hidden?
User avatar
Sir_SiLvA
Power Member
Power Member
Posts: 3379
Joined: 2003-05-06, 11:46 UTC

Post by *Sir_SiLvA »

see one the other post
(sorry ICFU alway mixing that up :D )
Last edited by Sir_SiLvA on 2005-02-18, 15:55 UTC, edited 1 time in total.
Hoecker sie sind raus!
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

@Sir_Silva:
These are not internal variables but systemwide ones (besides %Commander_Path%) which you can call using the "set" command in console.

@solid:
Complete list is only in HISTORY.TXT afaik. I extracted all of them some days ago to update my directory list:

%$APPDATA%
%$COMMON_APPDATA%
%$COMMON_DESKTOPDIRECTORY%
%$COMMON_DOCUMENTS%
%$COMMON_PICTURES%
%$COMMON_PROGRAMS%
%$COMMON_STARTMENU%
%$COMMON_STARTUP%
%$DESKTOP%
%$FONTS%
%$LOCAL_APPDATA%
%$MYPICTURES%
%$PERSONAL%
%$PROGRAMS%
%$STARTMENU%
%$STARTUP%

If there are more ghisler has not mentioned them, maybe he will update that list (and the help file...).

Icfu
This account is for sale
User avatar
solid
Power Member
Power Member
Posts: 749
Joined: 2004-08-09, 11:20 UTC

Post by *solid »

Thanks icfu.
Those I've found are extracted from help file. I didn't find more on the forums. That help file defenitely needs updating, at least to include all undocumented features by now :)
User avatar
Lefteous
Power Member
Power Member
Posts: 9537
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

Here is a little test program I wrote a while ago to display all "registry environment strings":
www.lefteous.de/tc/archives/regenvstrings/regenvstrings_1.03.zip

NOTE: Not all of them are implemented in Total Commander.
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

Some variables are misnamed in ini file or maybe I don't understand what that inifile is for?

For example in HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders there is a varibale "Administrative Tools" but not "admintools" and MYMUSIC, MYPICTURES and MYVIDEO should have spaces in them, etc...

Is it just the way you would choose the variable names?

Enlighten me please. ;)

Icfu
This account is for sale
User avatar
Lefteous
Power Member
Power Member
Posts: 9537
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2icfu
Enlighten me.
The names are not directly referring to the registry keys they are referring to so called CSIDLs. These are just constant values. The names used in the INI file are taken from this documentation (without the prefix).
However only the numeric values are important not the names for my tool.
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

Ah, I see, very interesting. Too bad that they obviously forgot to include most of that stuff to be usable on command line, too, but only within applications.

Icfu
This account is for sale
Post Reply