[TC10.52rc2] Virtual folder not stored in ini when accessed via This PC

Bug reports will be moved here when the described bug has been fixed

Moderators: white, Hacker, petermad, Stefan2

User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC10.52rc2] Virtual folder not stored in ini when accessed via This PC

Post by *petermad »

white wrote: 2022-10-16, 11:16 UTC 2petermad
Can you answer this:
white wrote: 2022-10-14, 10:57 UTC
petermad wrote: 2022-10-14, 08:12 UTC I additionally on my system have a "3D-objects" folder GUID {31C0DD25-9439-4F12-BF41-7FF4EDA38722} in the root of "This PC".
Does that work when you do "cd ::{31C0DD25-9439-4F12-BF41-7FF4EDA38722}" or do you need to do "cd ::{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}"?
Only when I use cd ::{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Fla$her
Power Member
Power Member
Posts: 2244
Joined: 2020-01-18, 04:03 UTC

Re: [TC10.52rc2] Virtual folder not stored in ini when accessed via This PC

Post by *Fla$her »

ghisler(Author) wrote: 2022-10-16, 07:51 UTC As I wrote, these virtual folders all don't return a path when I try to save them. I could try to add more manually, but there are just too many. Maybe in a later version.
That is, it turns out that you are ready to add a GUID for OneDrive, which is not in the system before Win 8, but not for standard Documents and User? How is this to be understood?
I checked my list and it turned out that 22 folders are saved in history. Of the problematic ones, the following remained:

Code: Select all

::{D20EA4E1-3957-11d2-A40B-0C5020524153}	Administrative Tools -
::{450D8FBA-AD25-11D0-98A8-0800361B1103}	Documents
::{1F3427C8-5C10-4210-AA03-2EE45287D668}	User Pinned

::{59031A47-3F72-44A7-89C5-5595FE6B30EE}	User
::{59031A47-3F72-44A7-89C5-5595FE6B30EE}\Contacts\
::{59031A47-3F72-44A7-89C5-5595FE6B30EE}\Desktop\
::{59031A47-3F72-44A7-89C5-5595FE6B30EE}\Documents\
::{59031A47-3F72-44A7-89C5-5595FE6B30EE}\Downloads\
::{59031A47-3F72-44A7-89C5-5595FE6B30EE}\Music\
::{59031A47-3F72-44A7-89C5-5595FE6B30EE}\Links\
::{59031A47-3F72-44A7-89C5-5595FE6B30EE}\Pictures\
::{59031A47-3F72-44A7-89C5-5595FE6B30EE}\Saved Games\
::{59031A47-3F72-44A7-89C5-5595FE6B30EE}\Searches\
::{59031A47-3F72-44A7-89C5-5595FE6B30EE}\Videos\
::{59031A47-3F72-44A7-89C5-5595FE6B30EE}\Favorites\

::{4336A54D-038B-4685-AB02-99BB52D3FB8B}	Common
::{4336A54D-038B-4685-AB02-99BB52D3FB8B}\Documents\
::{4336A54D-038B-4685-AB02-99BB52D3FB8B}\Downloads\
::{4336A54D-038B-4685-AB02-99BB52D3FB8B}\Music\
::{4336A54D-038B-4685-AB02-99BB52D3FB8B}\Music\Sample Music\
::{4336A54D-038B-4685-AB02-99BB52D3FB8B}\Pictures\
::{4336A54D-038B-4685-AB02-99BB52D3FB8B}\Pictures\Sample Pictures\
::{4336A54D-038B-4685-AB02-99BB52D3FB8B}\Recorded TV\
::{4336A54D-038B-4685-AB02-99BB52D3FB8B}\Videos\
In fact, this is only 5 GUIDs with subfolders. Why postpone?
Overquoting is evil! 👎
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC10.52rc2] Virtual folder not stored in ini when accessed via This PC

Post by *ghisler(Author) »

In fact, this is only 5 GUIDs with subfolders. Why postpone?
Which 5? You listed far more than 5 which remained.
Author of Total Commander
https://www.ghisler.com
Fla$her
Power Member
Power Member
Posts: 2244
Joined: 2020-01-18, 04:03 UTC

Re: [TC10.52rc2] Virtual folder not stored in ini when accessed via This PC

Post by *Fla$her »

ghisler(Author) wrote: 2022-10-16, 13:18 UTCWhich 5? You listed far more than 5 which remained.
Look carefully. The GUIDs themselves are only 5. The rest are subfolders for two of them.
Overquoting is evil! 👎
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC10.52rc2] Virtual folder not stored in ini when accessed via This PC

Post by *ghisler(Author) »

I see - so I could get the parent of the current idlist and check if it is
::{59031A47-3F72-44A7-89C5-5595FE6B30EE} User
and then just append the name?

Btw, do you know the difference between
::{450D8FBA-AD25-11D0-98A8-0800361B1103} Documents
and
::{d3162b92-9365-467a-956b-92703aca08af} Personal

Both show the same content here, but the first has title "Eigene Dokumente", which translates to "Own Documents", and the second just "Dokumente" ("Documents").
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC10.52rc2] Virtual folder not stored in ini when accessed via This PC

Post by *ghisler(Author) »

Thanks, but these also have the wrong GUID for the fonts folder:
{d20ea4e1-3957-11d2-a40b-0c5020524152}
cd ::{d20ea4e1-3957-11d2-a40b-0c5020524152} does not work here, and the Explorer can't open it either.

I will try to support
cd shell:Fonts
Author of Total Commander
https://www.ghisler.com
Fla$her
Power Member
Power Member
Posts: 2244
Joined: 2020-01-18, 04:03 UTC

Re: [TC10.52rc2] Virtual folder not stored in ini when accessed via This PC

Post by *Fla$her »

ghisler(Author) wrote: 2022-10-17, 07:30 UTC I see - so I could get the parent of the current idlist and check if it is
::{59031A47-3F72-44A7-89C5-5595FE6B30EE} User
and then just append the name?
Yes, as an option. But you should also check the Common folder too, there the names of some subfolders match.
ghisler(Author) wrote: 2022-10-17, 07:30 UTC::{d3162b92-9365-467a-956b-92703aca08af} Personal
There is no such folder on Win 7.
Overquoting is evil! 👎
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC10.52rc2] Virtual folder not stored in ini when accessed via This PC

Post by *ghisler(Author) »

I'm only supporting Windows 10 and 11 in this function, because the GUIDs are completely different between Windows versions.
Author of Total Commander
https://www.ghisler.com
User avatar
AntonyD
Power Member
Power Member
Posts: 1231
Joined: 2006-11-04, 15:30 UTC
Location: Russian Federation

Re: [TC10.52rc2] Virtual folder not stored in ini when accessed via This PC

Post by *AntonyD »

2ghisler(Author)
btw all these GUID's are defined in the KnownFolders.h file in the Windows SDK - each variant to each Windows Version
so if you have a proper access to this file - you can look into it and probably to find something interesting)))

https://learn.microsoft.com/en-us/dotnet/desktop/winforms/controls/known-folder-guids-for-file-dialog-custom-places?view=netframeworkdesktop-4.8
https://learn.microsoft.com/en-us/windows/win32/shell/knownfolderid
#146217 personal license
Fla$her
Power Member
Power Member
Posts: 2244
Joined: 2020-01-18, 04:03 UTC

Re: [TC10.52rc2] Virtual folder not stored in ini when accessed via This PC

Post by *Fla$her »

ghisler(Author) wrote: 2022-10-17, 16:16 UTCbecause the GUIDs are completely different between Windows versions.
Then my list on Win10+ would not work. But this is not the case, as you could see for yourself. ;)
Overquoting is evil! 👎
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC10.52rc2] Virtual folder not stored in ini when accessed via This PC

Post by *ghisler(Author) »

The following work for me on Windows 10 only:
{d3162b92-9365-467a-956b-92703aca08af} // CSIDL_PERSONAL
{24ad3ad4-a569-4530-98e1-ab02f9417aa8} // CSIDL_MYPICTURES
{f86fa3ab-70d2-4fc7-9c99-fcbf05467f3a} // CSIDL_MYVIDEO
{3dfdf296-dbec-4fb4-81d1-6a3438bcf4de} // CSIDL_MYMUSIC
{B4BFCC3A-DB2C-424C-B029-7FE99A87C641} // CSIDL_DESKTOP
{088e3905-0323-4b02-9826-5d99428e115f} // %$DOWNLOADS%
{018D5C66-4533-4307-9B53-224DE2ED1FE6} // %$SKYDRIVE%
{0DB7E03F-FC29-4DC6-9020-FF41B59E513A} // 3D Objects
The following also seem to work on Vista and newer:
{450D8FBA-AD25-11D0-98A8-0800361B1103} // Documents
{D20EA4E1-3957-11d2-A40B-0C5020524153} // Administrative Tools -
{59031A47-3F72-44A7-89C5-5595FE6B30EE} // user
{4336A54D-038B-4685-AB02-99BB52D3FB8B} // common
{1F3427C8-5C10-4210-AA03-2EE45287D668} // User Pinned

Edit: The above folders should be stored in the wincmd.ini now on exit in RC4, and also be accessible via history. I'm also supporting virtual subfolders one and two levels deep under any of these.
Author of Total Commander
https://www.ghisler.com
Fla$her
Power Member
Power Member
Posts: 2244
Joined: 2020-01-18, 04:03 UTC

Re: [TC10.52rc2] Virtual folder not stored in ini when accessed via This PC

Post by *Fla$her »

2ghisler(Author)
Thank you! Now everything works as it should. :)
Overquoting is evil! 👎
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC10.52rc2] Virtual folder not stored in ini when accessed via This PC

Post by *petermad »

I'm also supporting virtual subfolders one and two levels deep under any of these.
Hmm, this is not working here: ::{26EE0668-A00A-44D7-9371-BEB064C98683}\0\Skrifttyper

"Skrifttyper" is the localized word for "fonts" - run cm_OpenControl and open the 'Fonts' folder and save the settings and restart TC
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC10.52rc2] Virtual folder not stored in ini when accessed via This PC

Post by *ghisler(Author) »

These locations don't seem to support localization, it doesn't work in German either with Swiss German localization.
To go to the fonts folder, use
cd shell:Fonts
instead.
Author of Total Commander
https://www.ghisler.com
Post Reply