[TC 11.51] Virtual folders that are not saved in the directory history on XP/2003

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: Hacker, petermad, Stefan2, white

Fla$her
Power Member
Power Member
Posts: 2999
Joined: 2020-01-18, 04:03 UTC

[TC 11.51] Virtual folders that are not saved in the directory history on XP/2003

Post by *Fla$her »

I want to return to the old topic:
ghisler(Author) wrote: 2022-10-17, 09:23 UTC 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.
ghisler(Author) wrote: 2022-10-18, 07:24 UTC The following also seem to work on Vista and newer:
{450D8FBA-AD25-11D0-98A8-0800361B1103} // Documents
Can you add these GUIDs for XP/2003?

This problem, of course, also applies to the virtual subfolders \\My Pictures, \\My Music and \\My Videos.

Added: also after cd ::{D20EA4E1-3957-11D2-A40B-0C5020524153} \\Administrative Tools is not saved.
Last edited by Fla$her on 2025-05-08, 21:40 UTC, edited 2 times in total.
Overquoting is evil! 👎
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50561
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.51] Virtual folders that are not saved in the directory history on XP/2003

Post by *ghisler(Author) »

Can you explain what I should change? When I use
cd ::{450D8FBA-AD25-11D0-98A8-0800361B1103}
and then close TC and re-open it, the folder is restored.
Author of Total Commander
https://www.ghisler.com
Fla$her
Power Member
Power Member
Posts: 2999
Joined: 2020-01-18, 04:03 UTC

Re: [TC 11.51] Virtual folders that are not saved in the directory history on XP/2003

Post by *Fla$her »

On XP? In my case, it doesn't restored. Instead, "C:\" opens. The folder is opened this way on both sides.
wincmd.ini after cm_Exit 13:

Code: Select all

[RightHistory]
0=C:\
[LeftHistory]
0=C:\
This also happens if I go to the folder from the Desktop, but in the ini it will be different:

Code: Select all

[RightHistory]
0=::|\\Desktop\	#1,My Documents
[LeftHistory]
0=::|\\Desktop\	#1,My Documents
As you can see, the GUID entry is ignored, not saved.

At the same time, before restarting, the history navigation by Alt+Left/Right works with this folder.
Overquoting is evil! 👎
User avatar
petermad
Power Member
Power Member
Posts: 16034
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 11.51] Virtual folders that are not saved in the directory history on XP/2003

Post by *petermad »

I can confirm that virtual folders can not be loaded at startup in Windows XP

Some virtual folders cannot be seen in the history after restart like \\Documents, while \\My Network Places and \\Control Panel can be seen in the History after restart
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
Fla$her
Power Member
Power Member
Posts: 2999
Joined: 2020-01-18, 04:03 UTC

Re: [TC 11.51] Virtual folders that are not saved in the directory history on XP/2003

Post by *Fla$her »

2petermad
We are talking only about the specified two GUIDs and their virtual subfolders (added in the first post). The others were fine.
Overquoting is evil! 👎
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50561
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.51] Virtual folders that are not saved in the directory history on XP/2003

Post by *ghisler(Author) »

On XP?
No, virtual folders can only be preserved like this on Windows Vista and newer. It doesn't work on XP because it uses the function
SHGetNameFromIDList which doesn't exist on XP. Restoring the Fonts folder works fine on Windows Vista and newer which have this function.
Author of Total Commander
https://www.ghisler.com
Fla$her
Power Member
Power Member
Posts: 2999
Joined: 2020-01-18, 04:03 UTC

Re: [TC 11.51] Virtual folders that are not saved in the directory history on XP/2003

Post by *Fla$her »

ghisler(Author) wrote: 2025-05-05, 12:54 UTC No, virtual folders can only be preserved like this on Windows Vista and newer.
Please look at the title, the quotes given, and my question. I have pointed specifically to XP/2003.
What do you mean by virtual folders? I wrote above that of all the ones I've tested, only the two (+ 3 subdirs) listed ones don't work. How do you explain this?
ghisler(Author) wrote: 2025-05-05, 12:54 UTC It doesn't work on XP because it uses the function SHGetNameFromIDList which doesn't exist on XP.
And you don't have any workarounds?
How is the directory history navigation (Alt+left/right, Alt+down + up/down + Enter) supported during the session? Why is there no problem with this, but with saving to ini?
Overquoting is evil! 👎
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50561
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.51] Virtual folders that are not saved in the directory history on XP/2003

Post by *ghisler(Author) »

No, there are no workarounds on XP, sorry.

TC internally remembers the so-called item id list, which is a large binary object. To save to ini, it has to be saved as some kind of string.
Author of Total Commander
https://www.ghisler.com
Fla$her
Power Member
Power Member
Posts: 2999
Joined: 2020-01-18, 04:03 UTC

Re: [TC 11.51] Virtual folders that are not saved in the directory history on XP/2003

Post by *Fla$her »

You haven't answered my questions:
What do you mean by virtual folders?
How do you explain this?

ghisler(Author) wrote: 2025-05-06, 10:32 UTC TC internally remembers the so-called item id list, which is a large binary object. To save to ini, it has to be saved as some kind of string.
And how do you save other GUIDs to ini on XP? You are guided by these identifiers, right?
Overquoting is evil! 👎
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50561
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.51] Virtual folders that are not saved in the directory history on XP/2003

Post by *ghisler(Author) »

What other GUIDs?
Author of Total Commander
https://www.ghisler.com
Fla$her
Power Member
Power Member
Posts: 2999
Joined: 2020-01-18, 04:03 UTC

Re: [TC 11.51] Virtual folders that are not saved in the directory history on XP/2003

Post by *Fla$her »

All the others:
{21EC2020-3AEA-1069-A2DD-08002B30309D}
{48E7CAAB-B918-4E58-A94D-505519C795DC}
{20D04FE0-3AEA-1069-A2D8-08002B30309D}
{E211B736-43FD-11D1-9EFB-0000F8757FCD}
{D6277990-4C6A-11CF-8D87-00AA0060F5BF}
{645FF040-5081-101B-9F08-00AA002F954E}
{208D2C60-3AEA-1069-A2D7-08002B30309D}
{2227A280-3AEA-1069-A2DE-08002B30309D}
{7BE9D83C-A729-4D97-B5A7-1B7313C39E0A}
{7007ACC7-3202-11D1-AAD2-00805FC1270E}
{992CFFA0-F557-101A-88EC-00DD010CCC48}
{AFDB1F70-2A4C-11D2-9039-00C04F8EEB3E}
{1F4DE370-D627-11D1-BA4F-00A0C91EEDBA}
{13E7F612-F261-4391-BEA2-39DF4F3FA311}
Last edited by Fla$her on 2025-05-08, 21:40 UTC, edited 2 times in total.
Overquoting is evil! 👎
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50561
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.51] Virtual folders that are not saved in the directory history on XP/2003

Post by *ghisler(Author) »

I'm getting these from the item id list when I call GetDisplayNameOf with parameter SHGDN_FORPARSING.
However, for the Fonts folder, I just get c:\windows\fonts back instead of the GUID. Therefore I use SHGetNameFromIDList on Windows Vista and newer, but that function is missing on XP.
Author of Total Commander
https://www.ghisler.com
Fla$her
Power Member
Power Member
Posts: 2999
Joined: 2020-01-18, 04:03 UTC

Re: [TC 11.51] Virtual folders that are not saved in the directory history on XP/2003

Post by *Fla$her »

ghisler(Author) wrote: 2025-05-08, 08:59 UTC I'm getting these from the item id list when I call GetDisplayNameOf with parameter SHGDN_FORPARSING.
What prevents you from getting two GUIDs directly on XP/2003 this way?
Overquoting is evil! 👎
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50561
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.51] Virtual folders that are not saved in the directory history on XP/2003

Post by *ghisler(Author) »

The item id list is a binary object, the data can vary between sessions. There is no way to know that a specific item id list represents the Fonts virtual folder. I need to ask the system, which does not work on XP (see my explanation above).
Author of Total Commander
https://www.ghisler.com
Fla$her
Power Member
Power Member
Posts: 2999
Joined: 2020-01-18, 04:03 UTC

Re: [TC 11.51] Virtual folders that are not saved in the directory history on XP/2003

Post by *Fla$her »

ghisler(Author) wrote: 2025-05-08, 08:59 UTC However, for the Fonts folder, I just get c:\windows\fonts back instead of the GUID.
And why do you do this if it harms saving in the ini?
There is no way to know that a specific item id list represents the Fonts virtual folder.
Are you talking about GetDisplayNameOf?

How about checking these two names directly by the values of registry key parameters?
Fonts: HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved\{D20EA4E1-3957-11d2-A40B-0C5020524152}
My Documents: HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\CLSID\{450D8FBA-AD25-11D0-98A8-0800361B1103}\(Default)
Overquoting is evil! 👎
Post Reply