Disable Compressed Files Shown as Folders in Virtual Windows Folders

English support forum

Moderators: sheep, Hacker, Stefan2, white

Post Reply
brahman
Member
Member
Posts: 146
Joined: 2006-04-26, 13:27 UTC

Disable Compressed Files Shown as Folders in Virtual Windows Folders

Post by *brahman » 2019-07-09, 13:44 UTC

If I use

[left]
Path=%$DOWNLOADS%

it doesn't work (caption is %$DOWNLOADS%\%$DOWNLOADS%\) and no files.

But %$DOWNLOADS% does work in [lefttabs].

When using
[left]
Path=::{374DE290-123F-4565-9164-39C4925E467B}
I don't see .exe and other file types, only .zip until I open a zip and go back, then I see all file types. Same when using this path with cd on command line.

%${374DE290-123F-4565-9164-39C4925E467B}% does not work in [left]
but on command line and shows all files.
Last edited by brahman on 2019-07-13, 13:27 UTC, edited 1 time in total.
Regards, Brahman
Win10 Pro x64

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

Re: Bug Report [left]

Post by *petermad » 2019-07-09, 20:21 UTC

[left]
Path=%$DOWNLOADS%

it doesn't work (caption is %$DOWNLOADS%\%$DOWNLOADS%\) and no files.

But %$DOWNLOADS% does work in [lefttabs].
I can confirm this - and the same applies to [right] and [righttabs]
[left]
Path=::{374DE290-123F-4565-9164-39C4925E467B}
I don't see .exe and other file types, only .zip until I open a zip and go back, then I see all file types. Same when using this path with cd on command line.
I cannot confirm this. But ::{374DE290-123F-4565-9164-39C4925E467B} takes you to the virtual folder \\Downloads - an what you see here is dependent on your setting for Windows Explorer, so if your Windows Explorer is not set up to show all file types with all attributes, that could be the reason - also notice that in \\Downloads zip-files are shown as folders, not as files.

%${374DE290-123F-4565-9164-39C4925E467B}% does not work in [left]
but on command line
No environment variables (%xxx%) does not work in [left] and [right]. That's why %$DOWNLOADS% doesn't work either.

and shows all files.
That is because %$xxx% resolves the path to the physical path of the user-part of the virtual folder: "c:\Users\USERNAME\Downloads\" in stead of the virtual folder: \\Downloads

Try and make two buttons one with:
cd ::{374DE290-123F-4565-9164-39C4925E467B}

And one with:
cd %${374DE290-123F-4565-9164-39C4925E467B}%

USe one button on tthe lesft side and one on the right side, and then look in the Path field above the file panel - then you can see the difference.
License #524 (1994)
Danish Total Commander Translator
TC 9.5b3 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 (1903) 64bit, 'Everything' 1.4.1.935 (x64)
TC 3.0b12 on Android 6.0
Get: Extended Total Commander Menus | PHSM-Calendar

brahman
Member
Member
Posts: 146
Joined: 2006-04-26, 13:27 UTC

Re: Bug Report [left]

Post by *brahman » 2019-07-10, 13:41 UTC

Thanks for checking, Petermad.

When I open the Download or any folder in explorer it shows all my files including extension.

Here is my complete section - maybe you can see something I missed:

Code: Select all

[left]
Path=::{374DE290-123F-4565-9164-39C4925E467B}
ShowAllDetails=1
show=3
userspec=*.*
sortorder=3
negative Sortorder=1
SpecialView=3
ViewMode=-1
activepanelcolor=-1
activepanelcolor2=-1
Regards, Brahman
Win10 Pro x64

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

Re: Bug Report [left]

Post by *petermad » 2019-07-11, 02:32 UTC

2brahman
I have no problems viewing the \\Downloads folder with your setting - but you have SpecialView=3 in it and that means that you are using your custom Columns view no. 2 - which will not be the same as my Custom columns view no. 2 - so try and change to full View, maybe that helps.

Here is how it looks in my TC - left side is the virtual folder and right side is the physical folder: http://madsenworld.dk/tcmd/downloadfolders.png

You might try with this and see if it makes any difference for you:

Code: Select all

[left]
path=::{374DE290-123F-4565-9164-39C4925E467B}
ShowAllDetails=1
SpecialView=0
show=1
negative Sortorder=1
userspec=*.*
ViewMode=-1
activepanelcolor=-1
activepanelcolor2=-1
sortorder=4
License #524 (1994)
Danish Total Commander Translator
TC 9.5b3 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 (1903) 64bit, 'Everything' 1.4.1.935 (x64)
TC 3.0b12 on Android 6.0
Get: Extended Total Commander Menus | PHSM-Calendar

brahman
Member
Member
Posts: 146
Joined: 2006-04-26, 13:27 UTC

Re: Bug Report [left]

Post by *brahman » 2019-07-11, 16:35 UTC

Dear Peter,

thank you very much for your suggestions!

I tried the exact configuration as you suggested, but I am still getting the same result.

I made a screenshot, and on the left side you see the result of [left] while on the right side while on the right panel you see how the folder looks using a normal path.

https://i.imgur.com/6RVtwdQ.png

Now of course you may wonder, why I don't use a normal path in [left] - the reason is of course portability to different PCs.
Regards, Brahman
Win10 Pro x64

User avatar
Dalai
Power Member
Power Member
Posts: 6744
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Bug Report [left]

Post by *Dalai » 2019-07-11, 17:15 UTC

Well, it probably depends on how ZIP files (or archives in general) are treated in Explorer, because \\Downloads is a virtual folder and its contents and appearance are not just determined by TC itself but also by Windows/Explorer. That's just the way it is.

Portability to different PCs can be achieved when you use the directory hotlist (or a button or TC's start menu) to save "cd %$Downloads%" in an item.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups

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

Re: Bug Report [left]

Post by *petermad » 2019-07-11, 18:46 UTC

2brahman
I can see that you have disabled square brackets [] around directory names, that's why you cannot see that the zip files in \\Download are treated as directories, hence sorted before all the other files. Are you sure your exe files are not listed further down in the list, below the zip files, on the left side?

What you can see though, is that on the left side Windows' icon for zip files (folder with a zipper) is used, while on the right side you see TC's yellow box icon for zip files.
License #524 (1994)
Danish Total Commander Translator
TC 9.5b3 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 (1903) 64bit, 'Everything' 1.4.1.935 (x64)
TC 3.0b12 on Android 6.0
Get: Extended Total Commander Menus | PHSM-Calendar

brahman
Member
Member
Posts: 146
Joined: 2006-04-26, 13:27 UTC

Re: Bug Report [left]

Post by *brahman » 2019-07-12, 12:58 UTC

Are you sure your exe files are not listed further down in the list, below the zip files, on the left side?
Hahaha you are so right! Duh!

But it would be nice to find a way so that they are NOT treated as folders.
Regards, Brahman
Win10 Pro x64

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

Re: Bug Report [left]

Post by *petermad » 2019-07-13, 09:04 UTC

2brahman

As Dalai mentioned, a lot of things in virtual folders (like \\Downloads or \\Desktop) are handled by Windows Explorer.

For example you don't see hidden system files in a virtual folder in TC, unless displaying such files is enabled in Explorer. If you copy or delete a file in \\Downloads you will also see that the confirmation dialogs are not those of TC but those of Explorer.
License #524 (1994)
Danish Total Commander Translator
TC 9.5b3 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 (1903) 64bit, 'Everything' 1.4.1.935 (x64)
TC 3.0b12 on Android 6.0
Get: Extended Total Commander Menus | PHSM-Calendar

brahman
Member
Member
Posts: 146
Joined: 2006-04-26, 13:27 UTC

Re: Bug Report [left]

Post by *brahman » 2019-07-13, 13:25 UTC

Thank you very much Petermad and Dalai for pointing me in the right direction.

The solution is to make the following changes to the registry:

Code: Select all

; This will disable showing Zip and Cab files as folders in in virtual folders (like \\Downloads or \\Desktop)
; Save this code as "Disable Compressed Files Shown as Folders.reg" and add to registry by double clicking on this .reg file.

[-HKEY_CLASSES_ROOT\CompressedFolder\CLSID]

[-HKEY_CLASSES_ROOT\SystemFileAssociations\.zip\CLSID]

[-HKEY_CLASSES_ROOT\CABFolder\CLSID]

[-HKEY_CLASSES_ROOT\SystemFileAssociations\.cab\CLSID]

To revert to the default explorer view, make these changes to the registry:

Code: Select all

; This will enable showing Zip and Cab files as folders in in virtual folders (like \\Downloads or \\Desktop)
; Save this code as "Enable Compressed Files Shown as Folders.reg" and add to registry by double clicking on this .reg file.

[HKEY_CLASSES_ROOT\CompressedFolder\CLSID]
@="{E88DCCE0-B7B3-11d1-A9F0-00AA0060FA31}"

[HKEY_CLASSES_ROOT\SystemFileAssociations\.zip\CLSID]
@="{E88DCCE0-B7B3-11d1-A9F0-00AA0060FA31}"

[HKEY_CLASSES_ROOT\CABFolder\CLSID]
@="{0CD7A5C0-9F37-11CE-AE65-08002B2E1262}"

[HKEY_CLASSES_ROOT\SystemFileAssociations\.cab\CLSID]
@="{0CD7A5C0-9F37-11CE-AE65-08002B2E1262}"
I hope this will help someone else with the same question.
Regards, Brahman
Win10 Pro x64

Post Reply