Similar Posts

Subscribe
Notify of
4 Answers
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Erzesel
1 year ago

Attention: Create a recovery point beforehand.

if something goes wrong You can undo it

the icon for a file type is set in the registry.

With a script language like Powershell, this is almost trivial.

[microsoft.win32.registry]:SetValue(“HKEY_CLASSES_ROOT\.nameThe extension\DefaultIcon\”, “”, “pfad\zu\Iconfile.ico“)

…the path can also refer to a Dll file and the number of the contained icon

Example in Powershell:

[microsoft.win32.registry]::SetValue("HKEY_CLASSES_ROOT\.0blubb\DefaultIcon\", "", "C:\Windows\System32\Shell32.dll,109")

generated for a file extension .0blubb an icon on the banicon.

when you create/rename a file with the .0blubb extension, it is displayed with the above icon.

You can do this for any file type.

this also goes with Regedit:

mat22
1 year ago

This is generated by the respective file browser. It therefore depends on the file browser and not on the file itself whether a logo and if yes which logo is displayed.

mat22
1 year ago
Reply to  BossWither

Then you must program your own file browser;)

However, you can also try to make a picture of the properties of the file – but I don’t know that because I don’t use a windoof.