Notepad on the Desktop and View Source

Notepad shortcut, Notepad folder when using View Source in Internet Explorer

Overview

Some people have reported having problems with View Source in Internet Explorer, and found that if they have a shortcut to Notepad on the Windows Desktop, deleting the shortcut will fix it. There is a user feedback that elaborates on this in my Can't View Source page.

Other people are now discovering that placing a folder called Notepad on the Windows Desktop will cause that folder to open when View Source is used in Internet Explorer.

I tried looking for official documentation at Microsoft's site, but could not find anything that directly addressed this issue.

Experimenting With Settings

I decided to test out these situations, and report the results here. One factor is the different combinations of Notepad shortcut/folder. Another factor is the View Source Editor registry setting.

If you look in the registry under [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer] and there is no View Source Editor, then it is not set, and Notepad is used by default. It seems that when it's not set, Internet Explorer will look around for Notepad, and one of the places it looks is on the Desktop.

For registry setup instructions, refer to the "(10) Missing registry setting" and "(12) Additional documentation for useful registry settings" feedback solutions in my Can't View Source page. The latter includes a link to Microsoft's documentation about Selecting a View Source Editor.

My Setup

The operating systems / browser versions I tested.

The test site I used when viewing source was http://www.google.com/

Possible Results

These are the possible outcomes that I know of.

My Results

The following results are from the systems I tested given the criteria I listed above, and may differ from your system.

View Source Editor is not set

Notepad shortcutNotepad folderWin2kXP
NoNoView Source worksView Source works
YesNoView Source worksView Source works
NoYesNotepad folder opensNotepad folder opens
YesYesView Source worksView Source works

View Source Editor\Editor Name is set to the Notepad path

Notepad shortcutNotepad folderWin2kXP
NoNoView Source worksView Source works
YesNoView Source worksView Source works
NoYesView Source worksView Source works
YesYesView Source worksView Source works

Conclusion

I'm not specifically recommending changing your registry settings, but if you want to avoid the Notepad folder issue, you might want to try it.

About this page: