Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Here is code I tried:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Classes\DLI\DefaultIcon]
@="c:\\dli\\fav.ico"
[HKEY_CURRENT_USER\Software\Classes\DLI\shell\open\command]
@="c:\\dli\\dli.exe +i %1"
[HKEY_CURRENT_USER\Software\Classes\.dls]
@="DLI"
[HKEY_CURRENT_USER\Software\Classes\.dls\DefaultIcon]
@="c:\\dli\\fav.ico"

I assigned new extension to my application. I wanted also assign icon to files with this extenstion, but it doesn't work. File still is being shown with unknown icon.

share|improve this question
up vote 1 down vote accepted
  1. Export the keys for a known file type, then edit them carefully and import. See if this works.

  2. Undo your registry edits and use FileTypesMan instead. Just go to Edit / New File Extension and fill in the details:

    1

  3. Ensure the .ICO format is correct, then try rebuilding the icon cache.

share|improve this answer
    
Thanks for your help – Disa May 31 '13 at 8:47

I think this site might help - http://www.vistax64.com/tutorials/178915-file-extension-type-icon-change.html

share|improve this answer
    
Can you elaborate a bit? Link only answers are not looked upon favourably here. – Karan May 31 '13 at 3:19
    
Thanks for your help – Disa May 31 '13 at 8:47

Use Default Programs editor. It has a nice UI to change the associations and icons.

Click on the Entry "Icon", select the extension you want and change the Icon:

enter image description here

share|improve this answer
    
Thanks for your help – Disa May 31 '13 at 8:45

You must log in to answer this question.

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