Pseudo environment variables not working?

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
jslegers
Member
Member
Posts: 127
Joined: 2003-07-17, 08:13 UTC

Pseudo environment variables not working?

Post by *jslegers »

Hello,

I'm trying the new pseudo environment variables. If have made DirMenu options for test :

[DirMenu]
menu1=Documents
cmd1=cd %$PERSONAL%
menu2=-
menu3=Downloads
cmd3=cd %Downloads%
menu4=Temp
cmd4=cd %TEMP%
menu5=Favorites
cmd5=cd %Favorites%

The downloads and favorites don't work. Is this a know issue? I'm testing it on Windows 10 64Bit 1709 Build 16299.192
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Please try %$DOWNLOADS% and %$FAVORITES%.
User avatar
Stefan2
Power Member
Power Member
Posts: 4158
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: Pseudo environment variables not working?

Post by *Stefan2 »

jslegers wrote:I'm trying the new pseudo environment variables.
For more info see:

viewtopic.php?t=48973
Total Commander 9.12 final is available now!
Support new pseudo environment variables from values described here
- just leave out the FOLDERID_ prefix, e.g. %$AccountPictures%

http://www.ghisler.com/history912.txt
04.08.17 Added: Windows Vista and newer: Support new pseudo environment variables
described here: https://msdn.microsoft.com/en-us/library/windows/desktop/dd378457.aspx.
Leave out prefix FOLDERID_, e.g. FOLDERID_Downloads -> %$Downloads% .
Only fields with "Default Path" option are supported (32/64)


- - -

Example:

https://msdn.microsoft.com/en-us/library/windows/desktop/dd378457.aspx.
FOLDERID_Favorites
Default Path %USERPROFILE%\Favorites

-

So do you have: %USERPROFILE%\Favorites ?



Try pasting '%USERPROFILE%\Favorites' into the path box of the file list...







 
User avatar
jslegers
Member
Member
Posts: 127
Joined: 2003-07-17, 08:13 UTC

Post by *jslegers »

MVV wrote:Please try %$DOWNLOADS% and %$FAVORITES%.
That was it. Thanks.
chasbas
Junior Member
Junior Member
Posts: 52
Joined: 2003-02-06, 16:01 UTC
Location: New Jersey

Post by *chasbas »

When I try this, if the first letter of the psuedo environment variable is lowercase, it is not recognized. The case of the rest of the string doesn't matter - only the first character has to be uppercase.

Is this because of Windows, or TC?

For example:
Works:
cd %$Personal%
cd %$PERSONAL%
cd %$PeRsOnAl%

Doesn't work:
cd %$personal%
cd %$pERSONAL%
User avatar
Hacker
Moderator
Moderator
Posts: 13065
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

chasbas,
Is this because of Windows, or TC?
TC. By design.

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Post Reply