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 have Installed Windows 7, which now opens .png and .jpg files with Windows Photo Viewer, but .gif files are opened with Paint. Also, in the Open With context menu it doesn't suggest Windows Photo Viewer as one of the programs to open the file with. I understand the Windows Photo Viewer is not a stand-alone executable that I can select using the Browse button in the Open With menu. So my question is, how to I set windows to open .gif files with Windows Photo Viewer?

share|improve this question

migrated from Apr 5 '11 at 13:56

This question came from our site for professional and enthusiast programmers.

up vote 2 down vote accepted

To open a picture with the Windows Photo Viewer, the following command is used:

rundll32.exe C:\WINDOWS\System32\shimgvw.dll,ImageView_Fullscreen "%1"

where %1 is the picture you want to open, so if you want your picture to open you need to adjust


to the above command and remove any other subkeys.

As this is not an executable and you seem to have somehow removed the open with entry which must be at


or somewhere else I'm yet unaware of for the Windows Photo Viewer to not appear for you.

share|improve this answer
Thanks, I was looking for this command :) – Orr Siloni Apr 5 '11 at 15:22

Did you try to hit the little arrow on the bottom right where it says other programs? It expands the list and you can see windows photo viewer. As you can see in the screen shot mine is set to Internet Explorer (which I never use) and the photo viewer shows up after hitting the arrow.

enter image description here

share|improve this answer
Thanks, I didn't realize that I need to click the tiny arrow. Thought clicking on the 'Other Programs' text is also supposed to open that list. – Orr Siloni Apr 5 '11 at 15:23

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.