[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
white
Power Member
Power Member
Posts: 4594
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

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

Post by *white »

  • Select menu option Commands/Open Desktop Folder
  • Enter the folder Libraries
  • Enter one of the virtual folders, for example Documents.
  • Close TC
The Documents folder is stored in wincmd.ini. If you start TC again, the Documents folder will be opened.
  • Select menu option Commands/Open Desktop Folder
  • Enter the folder This PC
  • Enter one of the virtual folders, for example Documents.
  • Close TC
The Documents folder is not stored in wincmd.ini. If you start TC again, the folder c:\ will be opened.
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 »

The two \\Documents\ folders are not the same. The one that is a subdirectory to \\Libraries contains files from the personal and the common physichal Documents\ directories plus files from OneDrive's Documents\ folder.

The \\\\Documents\ folder that is a subdirectory to "\\This PC" only contains files from the personal physichal Documents\ directories

The path (or GUID) to the first one is ::{031E4825-7B94-4DC3-B131-E946B44C8DD5}\Documents.library-ms
The path (or GUID) to the second one is ::{450D8FBA-AD25-11D0-98A8-0800361B1103}

Path to personal physichal Documents: %USERPROFILE%\Documents (C:\USers\USERNAME\Documents) or %$PERSONAL%
Path to common physichal Documents: %PUBLIC%\Documents (C:\USers\Public\Documents) or %$COMMON_DOCUMENTS%

All the virtual folders under "\\This PC" seems to be personal (not including common/public files)

And I can confirm that TC can not save the path to the virtual folders under "\\This PC".

If i manually insert ::{450D8FBA-AD25-11D0-98A8-0800361B1103} for the start path in wincmd.ini ([left] path= or [right] path=) then TC actually handles that GUID OK - TC just cannot save that path correctly.
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) »

This happens when the call to shellfolder.GetDisplayNameOf(idlist,SHGDN_FORPARSING, .. fails to return the GUID for the current location. I don't know why this happens, the function must be flawed. If anyone knows a better way to get the GUID of these virtual folders, I will use it to save the location.
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) »

And I can confirm that TC can not save the path to the virtual folders under "\\This PC".
I found a solution for this: I manually get the item-idlist for each of these known folders and compare them with the one the user is in. If there is a match, I store the GUID for that folder. The downside is that this will not handle folders added at a later time to Windows. So far I handle these manually:
Desktop
Documents
Downloads
Music
Pictures
Videos

Most subfolders of these are shown as directories, but there are some exceptions like "Screenshots" in "Pictures", which still cannot be saved this way.
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-13, 20:58 UTC I manually get the item-idlist for each of these known folders ... So far I handle these manually:
So what is the difference between the first and second?
Do you need a list of GUIDs that can be opened in TC for manual processing? I can provide (from my DirMenu).
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) »

Yes, I call ShGetSpecialFolderLocation for e.g. CSIDL_MYPICTURES, then call SHGetNameFromIDList for both this IDLIST and the current folder I'm in. If the two match, I know that I'm in the "Pictures" folder, and store its GUID path "::{24ad3ad4-a569-4530-98e1-ab02f9417aa8}" in the wincmd.ini.
Author of Total Commander
https://www.ghisler.com
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 »

ghisler(Author) wrote: 2022-10-13, 20:58 UTC
And I can confirm that TC can not save the path to the virtual folders under "\\This PC".
I found a solution for this: I manually get the item-idlist for each of these known folders and compare them with the one the user is in. If there is a match, I store the GUID for that folder. The downside is that this will not handle folders added at a later time to Windows. So far I handle these manually:
Desktop
Documents
Downloads
Music
Pictures
Videos

Most subfolders of these are shown as directories, but there are some exceptions like "Screenshots" in "Pictures", which still cannot be saved this way.
I additionally on my system have a "3D-objects" folder GUID {31C0DD25-9439-4F12-BF41-7FF4EDA38722} in the root of "This PC".
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
white
Power Member
Power Member
Posts: 4594
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

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

Post by *white »

white wrote: 2022-06-15, 16:30 UTC For a list of CLSID keys see for example:
https://www.tenforums.com/tutorials/3123-clsid-key-guid-shortcuts-list-windows-10-a.html
This list contains many GUIDs.
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}"?
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-14, 07:05 UTC Yes
OK. I only have for Win 7:
GUIDs for TC:

Code: Select all

::{20D04FE0-3AEA-1069-A2D8-08002B30309D}	cm_OpenDrives
::	Desktop
::{26EE0668-A00A-44D7-9371-BEB064C98683}	Control panel
::{26EE0668-A00A-44D7-9371-BEB064C98683}\0	cm_OpenControls
::{ED7BA470-8E54-465E-825C-99712043E01C}	All tasks
::{7B81BE6A-CE2B-4676-A29E-EB907A5126C5}	Programs and Features
::{D450A8A1-9568-45C7-9C0E-B4F9FB4537BD}	Installed updates
::{D20EA4E1-3957-11d2-A40B-0C5020524153}	Administrative Tools
::{7BE9D83C-A729-4D97-B5A7-1B7313C39E0A}	Start > Programs
::{865E5E76-AD83-4DCA-A109-50DC2113CE9A}	Start > Programs ВІ
::{CB1B7F8C-C50A-4176-B604-9E24DEE8D4D1}	Getting Started
::{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}	cm_OpenNetwork
::{208D2C60-3AEA-1069-A2D7-08002B30309D}	Network (without FS plugins)
::{031E4825-7B94-4DC3-B131-E946B44C8DD5}	Libraries
::{645FF040-5081-101B-9F08-00AA002F954E}	cm_OpenRecycled
::{863AA9FD-42DF-457B-8E4D-0DE1B8015C60}	Printers
::{A8A91A66-3A7D-4424-8D24-04E180695C7A}	Devices and printers
::{AFDB1F70-2A4C-11d2-9039-00C04F8EEB3E}	Offline Files Folder
::{437FF9C0-A07F-4FA0-AF80-84B6C6440A16}	Command Folder
::{F1390A9A-A3F4-4E5D-9C5F-98F3BD8D935C}	Sync Setup Delegate Folder
::{BC48B32F-5910-47F5-8570-5074A8A5636A}	Sync Results Delegate Folder
::{E413D040-6788-4C22-957E-175D1C513A34}	Sync Center Conflict Delegate Folder

::{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\
::{323CA680-C24D-4099-B94D-446DD2D7249E}	Favourites
::{450D8FBA-AD25-11D0-98A8-0800361B1103}	Documents
::{22877A6D-37A1-461A-91B0-DBDA5AAEBC99}	Recent Places
::{1F3427C8-5C10-4210-AA03-2EE45287D668}	User Pinned
::{ED228FDF-9EA8-4870-83B1-96B02CFE0D52}	Games

::{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\
There are still some that don't show anything. I didn't include them in DirMenu.
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 »

There are some virtual folders, that are not subfolders to "This PC" that can not be saved either:
\\User Name\ -> ::{59031a47-3f72-44a7-89c5-5595fe6b30ee}
\\OneDrive\ -> ::{018D5C66-4533-4307-9B53-224DE2ED1FE6}

There are also these, but they are not part of the Tree:
\\Administration\ -> ::{21EC2020-3AEA-1069-A2DD-08002B30309D}\::{D20EA4E1-3957-11d2-A40B-0C5020524153}
\\Fonts\ -> cm_OpenFonts
\\Searches\ -> ::{59031a47-3f72-44a7-89c5-5595fe6b30ee}\{7d1d3a04-debb-4115-95cf-2f29da2920da}
\\Links\ -> ::{59031a47-3f72-44a7-89c5-5595fe6b30ee}\{bfb9d5e0-c6a9-404c-b2b2-ae6db6af4968}
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 »

2petermad
User and Administrative Tools are on my list.
Searches and Links, among others, too, only instead of the right GUIDs there are canonical names.
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) »

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.
\\User Name\
This one is restored as the directory c:\users\username here.
\\OneDrive\
Confirmed, I can add that.
I additionally on my system have a "3D-objects" folder GUID {31C0DD25-9439-4F12-BF41-7FF4EDA38722} in the root of "This PC".
How do you get that? I can't add support for it unless I can recreate it here.
2white
The 10forums CLSID values don't seem to work, e.g. the one for fonts:
cd ::{BD84B380-8CA2-1069-AB1D-08000948F534}
does not work here, neither on Windows 10 nor 11.
I found another list here:
https://learn.microsoft.com/en-us/windows/win32/shell/knownfolderid
But the fonts folder GUID from that list does not work either:
cd ::{FD228CB7-AE11-4AE3-864C-16F3910AB8FE}
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 4594
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

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

Post by *white »

ghisler(Author) wrote: 2022-10-16, 07:51 UTC The 10forums CLSID values don't seem to work, e.g. the one for fonts:
cd ::{BD84B380-8CA2-1069-AB1D-08000948F534}
does not work here, neither on Windows 10 nor 11.
I found another list here:
https://learn.microsoft.com/en-us/windows/win32/shell/knownfolderid
But the fonts folder GUID from that list does not work either:
cd ::{FD228CB7-AE11-4AE3-864C-16F3910AB8FE}
After I tried the cd commands listed above (in listed order) I got an AV error when trying the last one. I could not reproduce it after that.
Total Commander 10.52RC3 64-bit wrote: ---------------------------
Total Commander 10.52RC3
---------------------------
Fatal error in Network dir thread 2, aborting!
Access violation
Windows 11 Professional 10.0 (Build 22621), base: 0400000

Please report this error to the Author, with a description
of what you were doing when this error occurred!

Stack trace (x64):8EB948
8EB9D9 5DD616 5DEFFE 7FC8B4
Press Ctrl+C to copy this report!
---------------------------
OK
---------------------------
The fonts GUIDs don't work for me either. The GUIDs listed on the tenforums site generally work for me, but not all of them. None (I think) of the GUIDs listed on the Microsoft site seem to work for me, it seems like these are different kind of GUIDs.

BTW, the GUIDs mentioned on:
https://learn.microsoft.com/en-us/windows/win32/shell/knownfolderid
seem to be in a GUID list here:
https://learn.microsoft.com/en-us/dotnet/desktop/winforms/controls/known-folder-guids-for-file-dialog-custom-places
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 »

2ghisler(Author)
I additionally on my system have a "3D-objects" folder GUID {31C0DD25-9439-4F12-BF41-7FF4EDA38722} in the root of "This PC".

How do you get that? I can't add support for it unless I can recreate it here.
I don't know how it got placed there, but probably by one of Windows 10's 3D apps - try running these and see if it turns up:

Code: Select all

com.microsoft.3dviewer:
ms-paint:
com.microsoft.builder3d:
com.microsoft.print3d:
ms-holographicfirstrun:
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
white
Power Member
Power Member
Posts: 4594
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

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

Post by *white »

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}"?
Post Reply