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.
Adding item in Help for Environment variables
Moderators: Hacker, petermad, Stefan2, white
Adding item in Help for Environment variables
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
- ghisler(Author)
- Site Admin
- Posts: 50550
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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
https://www.ghisler.com
https://www.ghisler.com
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.
%APPDATA% and %$APPDATA" is a similar example.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
- ghisler(Author)
- Site Admin
- Posts: 50550
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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
https://www.ghisler.com
https://www.ghisler.com