I know how to change an icon for a whole file type using registry and file type association. I also know how to change an icon for a separate folder using desktop.ini file.
My questions is whether it is possible to change an icon for one specific file, let's say one.doc file?
I cannot find a way doing it, yet some upload programs seem to be able to change an icon of the currently uploaded file, while all other files of this type stay with the standard icon. How do they do it?
I can accept a solution in any language; VB, C++, C# - anything goes, though C# is preferable. Thanks
You can use an IconHandler to allow icons to be customized on a file-by-file basis. Note that shell extensions should not be written in managed code, so C++ is the language of choice here.
Note also that it's highly unusual to be installing an icon handler for another application's file type.
I realize that this thread is pretty old. But for users who have less experience in coding, a good alternative is the following.
Just another solution. More of a workaround really.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With