TC doesn't show icons for some file types. From a few tests I think this applies only to file types registered to open in Metro applications. Also I have noticed, that files in virtual folders have proper icons.
Image: http://i1057.photobucket.com/albums/t399/uumbra8/TC/bugs/Win8icons.png
Tested both 32b and 64b versions of TC8.0 beta 23 on Windows 8 CP.
[8.0ß23] Missing file icons in Win 8
Moderators: Hacker, petermad, Stefan2, white
[8.0ß23] Missing file icons in Win 8
Last edited by umbra on 2012-03-29, 19:27 UTC, edited 1 time in total.
Windows 10 Pro x64, Windows 11 Pro x64
- ghisler(Author)
- Site Admin
- Posts: 50532
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
I haven't checked that yet - the normal Windows functions to extract icons may not work with Metro apps.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 50532
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Thanks! The problem was that the "DefaultIcon" entry contained really strange data like this:
I have no idea how to handle that, so I just call GetFileInfo() now with the extension to get the class icon.
Code: Select all
@{Microsoft.Reader_6.2.8232.0_x86__8wekyb3d8bbwe?ms-resource://Microsoft.Reader/Files/Images\ReaderFileLogo.png}
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Hi. Metro-style apps are archives/folders, not binaries. And the code in your example is a path to an icon inside such registered app. Your example in reality points to However I could not find more useful information on that. But your approach seems to be good.
Code: Select all
"%ProgramFiles%\WindowsApps\Microsoft.Reader_6.2.8232.0_x86__8wekyb3d8bbwe\Images\ReaderFileLogo.png"
Windows 10 Pro x64, Windows 11 Pro x64
- ghisler(Author)
- Site Admin
- Posts: 50532
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Thanks for the info! I tried to find a function to access this "ms-resource" URL type, but couldn't find anything so far.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com