How can I extract an icon from a file-type and apply it to a shortcut?

if you are familiar with the registry, that info is stored under HKEY_CLASSES_ROOT

  1. open regedit (don't mess around and change anything)
  2. there will be a list of folders in the treeview on the left, click on the one that is called "HKEY_CLASSES_ROOT". look through that long list for the extension .xyz
  3. when you click on it, the filetype will be listed.
  4. now search down the list under HKEY_CLASSES_ROOT until you find that type
  5. under that type will be a folder called DefaultIcon where you will find the icon used

Use IrfanView, www.irfanview.com, one of the more useful free programs on the web.

Install it, run it, and drag the .exe onto IrfanView's window.

The icon will show up in the IrfanView screen. If there are multiple icons, you can page through them by clicking the DOWN arrow on the menu bar at the top of the IrfanView screen.

You can save an icon to a separate file using File -> Save As. You can export all of them using OPTIONS -> EXTRACT_ALL_FRAMES. Try different file types for the best resolutions. .ICO file type is a good place to start.

I just extracted about 50 icons from a Windows 3.1 executable in about 1 second.


IconsExtract can do this for you.