This forum uses cookies. Click X button to hide this message. What is stored? 
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 

Adding item in Help for Environment variables

 
Post new topic   Reply to topic    Total Commander Forum Index -> TC Behaviour which will not be changed Printable version
View previous topic :: View next topic  
Author Message
petermad
Power Member
Power Member


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

PostPosted: Thu Sep 28, 2017 10:45 am    Post subject: Adding item in Help for Environment variables Reply with quote

In the Help for Enviromnt Varables under:
4. Pseudo environment variables from parameters of the function SHGetKnownFolderPath

I suggest to add: OneDrive

%$Onedrive% does the same as %$SkyDrive% under Windows 8 and 10 but %$Onedrive% also works under Windows 7, which %$SkyDrive% does not.

Note, it is only OneDrive that works - OneDriveDocuments for example does not work as replacement for SkyDriveDocuments.
_________________
#524
Danish Total Commander Translator
TC 9.10b1 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 64bit. TC 2.81b8 on Android 6.0

Get Extended Total Commander Menus
Back to top
View user's profile Send private message Send e-mail Visit poster's website
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 34715
Location: Switzerland

PostPosted: Fri Sep 29, 2017 4:24 am    Post subject: Reply with quote

Actually %$Onedrive% doesn't exist! Therefore TC also checks %Onedrive% and finds it! It's a regular environment variable you can see with "set" command in cmd.exe.
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
petermad
Power Member
Power Member


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

PostPosted: Fri Sep 29, 2017 9:47 am    Post subject: Reply with quote

Aha - then the question is whether it should be added to the list in the help or not?

%APPDATA% and %$APPDATA" is a similar example.
_________________
#524
Danish Total Commander Translator
TC 9.10b1 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 64bit. TC 2.81b8 on Android 6.0

Get Extended Total Commander Menus
Back to top
View user's profile Send private message Send e-mail Visit poster's website
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 34715
Location: Switzerland

PostPosted: Sun Oct 01, 2017 2:11 am    Post subject: Reply with quote

No, they are different! When you specify %APPDATA%, TC looks in the environment variable. When you specify %$APPDATA", TC calls ShGetSpecialFolderLocation with parameter CSIDL_APPDATA, and then SHGetPathFromIdList to get the actual directory name. For the second list of variables, TC calls SHGetKnownFolderPath.
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Total Commander Forum Index -> TC Behaviour which will not be changed 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