I wish to change the appearance of the default .txt icon

I have already replaced all the icon resources within all the different imageres.dll's (system32, syswow64, winsxs(amd64 and amdx86) but the default icon still appears. Are there more icon resources stored elsewhere in in the windows system files? If so where?

2 Answers 2


Use DefaultProgramEditor to change the icon of the .txt files. Run it and click on the command "Icon":

enter image description here

Now select txt extension and select the icon you want to assign.

  • I went the long way and did it through imageres.dll and sehll32.dll editing but your method works too
    – Gabardine
    Commented Jul 3, 2013 at 22:10
  • nice to hear that it worked. Editing system fies is a bad idea. Commented Jul 4, 2013 at 4:45
  • i just tried DefaultProgramEditor. The one file type it does not seem to support is txt files.
    – johny why
    Commented Oct 23, 2014 at 6:37

NirSoft FileTypesMan does the trick.

I'm running a notepad replacement (TED Notepad). TED Notepad changed the .txt icon and FileTypesMan let me change the .txt icon to an icon in any dll file. Nice integration with the Windows built-in dll-icon browser.


  • Maybe I'm doing it wrong but it changes all the icons that are openable with NotePad++. I only wanted to change the JS files. Association to an opening software, I don't want to change. Only the icon appearance. Commented Nov 2, 2014 at 10:02

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .