Right Click - Edit with Notepad

March 18, 2003

Developers and system administrators often need to open files of types that aren't mapped to a particular program. This ofcourse requires that slow "Open With" window to pop up. A trick I recently found is to add a shortcut to the right click menu, to open files with notepad.

This is done by editing the registry, under HKEY_CLASSES_ROOT\*\ There may or may not be a key under the * called Shell, if its not there create a key called Shell under HKEY_CLASSES_ROOT\*\. Under the Shell key create a key called Notepad, and under notepad create a key called Command. So now you shold be in HKEY_CLASSES_ROOT\*\Shell\Notepad\Command. Set the value of (Default) in the Command key to be notepad %1 or the path to another text editor.

Now when you right click on any file there will be a item in the menu called Notepad, that you can use to open the file with notepad.

Related Entries

16 people found this page useful, what do you think?


Or you could place a shortcut in the sendto folder. RightClick -> SendTo -> Notepad I wonder if a script could be written to take advantage of the "file" command [http://www.die.net/doc/linux/man/man1/file.1.html] that I commonly use on my linux desktop.
<h1>You may find it interesting to visit some information in the field of... Thanks!!! </h1>
Shortcuts are good... notepad is not good. I've replaced notepad with metapad. Small, fast, no filesize limit, intelligent find-and-replace, goto line/column, UNIX file support, recent files list, wordwrap and more. Metapad http://www.liquidninja.com/metapad/
I tried this tip and set it to open wordpad. Unfortunately, whenever I right-click on a file and select Wordpad, it asks me which program to open the file with, so I select Wordpad and check always use this setting. The setting doesn't keep and it asks me every time I use my new right-click shortcut. Any help is appreciated.
I have a website created with FrontPage and editable with FP from the creating computer. But I'm networked to a second computer which offers only Notepad for editing. Should I be able to access FrontPage for editing on my second computer as well?
Awesome!! thanks just what i was looking for.
How handy!
Sweet this is perfect, thx.
Awesome! this is perfect for README files and other unix-originated files that have no file extension! I'm using SciTE, but just about any text editor works great here!
I have used the tip to put notepad to the right-click menu and I have also added my own program (which crops and resizes pictures) to that rightclick menu. However, when I pass a picture to my own program it often fails because only the shortened names like "D:\AFBEEL~1\PONTJE~1.JPG" are passed to my program instead of the full name "D:\AFBEELDINGEN\PONTJE VAN PIET.JPG" DOes anyone know of a solution for this problem?
Agreed WBR, Alex http://world-pharma.pillsfm.com My favourite pharma supermarket
In the Command key (Default) you should add fot value "%1" instead just %1.
This does not work on Windows XP. Is there a way to make it work on XP?

Post a Comment


Spell Checker by Foundeo

Recent Entries


did you hack my cf?