home

“Open with Notepad” for all file types

Not that this isn’t wellknown, but I want a reminder in my own weblog…

In order to add an “Open with Notepad” (or the editor/whatever of your choice) context menu entry under Windows98/2000 for all file types, you’ve got to modify the registry like this:

  • In the registry key “HKEY_CLASSES_ROOT\*\” find the key “shell” or create it if it’s not there yet.
  • In “shell” create a new key and call it “openwnotepad” or alike. Change its “Default”-string’s value to “Open with Notepad”. This text will be your context menu text.
  • In “openwnotepad” create a new key, which you have to call “command”. Change its “Default”-string’s value to “notepad.exe %1”. Instead of notepad.exe you can point to the editor of your choice.

Warning and disclaimer: Meddling with the windows registry can cause a serious mess-up of your system. Doing so and/or using the information provided here is done at your own risk entirely. Don’t blame me.

Comments are closed.