Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

I added a new shortcut.url file with the following:

IconFile=C:\Program Files\Test\logo.ico

This works on XP - the shortcut displays the logo.ico. But on Windows 7, the shortcut is white, without the icon.

The icon exists in the location on Windows 7. I also noticed that if I use the Windows GUI to set the icon it works. Even though I am setting it to the same icon.

Is there a setting (maybe) where you have to include a path for the icon to work?

How can I get it to work on Windows 7?

share|improve this question
Just tried the exact same text above with a random ICO (on Win7 x64), and it worked perfectly. If the icon wasn't present the internet shortcut had a blank/white icon of course, but adding the icon to the specified location and pressing F5 made it show up as expected for the .URL file. Have you tried rebuilding the icon cache? – Karan Dec 4 '12 at 23:26

It's fairly stupid that I cannot post comments to the original post, since creating an answer to ask for extra information isn't the right way to do it.

I have never modified shortcuts using a text-editor, rather just right-clicked them and chosen properties. Try opening the shortcut properties and click "Change icon".

I suppose you could be having this problem because there is multiple icons in your ICO file so you have to specify which of them to use by adding ",1" after it. I'm not completely certain about how that works though.

share|improve this answer
No, you use IconIndex to specify which icon to use. – Scott Dec 20 '12 at 2:16

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.