3 ms·
Does Windows really display the that "exe.doc" RTL example with the icon for a Word Document? Or is the exe file just set to use that for its icon in order to c
by rcthompson 13y ago
Does Windows really display the that "exe.doc" RTL example with the icon for a Word Document? Or is the exe file just set to use that for its icon in order to complete the illusion?
- zxcdw 13y agoThe file browser just looks at the extension, rather than the file header, so yes. This can be tested by creating a dummy .txt file and changing it's extension -- the icon changes although file contents remain the same.
- groby_b 13y agoThe extension is still .exe, though. It only _looks_ like .doc after font rendering. And so, as the OP suspected, the .exe needs to have the proper icon embedded. It's not provided by the file browser.
- rcthompson 13y agoSo it seems like one important thing that Windows (or any OS) should do is to not display custom icons for untrusted executables.
- dspeyer 13y agoIIRC, when Windows file browser sees a .exe file, it looks inside the file for the program's icon and only uses the window thing if it doesn't find one. Nothing stops the program's icon from being the same as a Word doc.