How To: Add “Open with Notepad” Option to Windows Vista Right-Click Context Menu
Do you use Notepad editor very frequently in Windows Vista to open all types of text files? There are situations where you need to open plain-text files (where the file type is not registered in your system, or the file has NO extension at all) using Notepad or any other text editor. Usually, you use the Open With dialog and select Notepad from the list. If Notepad is not available in the list, you browse to Notepad.exe in the Windows folder and add it to the dialog.
This quick Windows Vista registry tweak will add “Open with Notepad” to all of your file context menus. Whenever you right click on a file, you will have the option to open it in Notepad.
Copy and paste the code below into Notepad. Then save it as OpenWithNotepad.reg file and import it to the Windows Vista registry by clicking on it.
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\Open with Notepad]
[HKEY_CLASSES_ROOT\*\shell\Open with Notepad\command]
After implementing the changes, the Open with Notepad option will appear when you right-click on any file type in Windows Vista Explorer. Be aware that opening binary files (For example: .exe, .dll, .com and so forth..) using Notepad and saving them would corrupt the file and may no longer run. Use this Open with Notepad option in Windows Vista right-click context menu only for files containing text content.