Right Click - Edit with Notepad


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?


Trackback Address: 69/F20BF0C5A0307F1E73DFFD28750D77E4


On 03/03/2004 at 10:31:22 AM UTC sean wrote:
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.

On 12/22/2004 at 1:23:36 AM UTC Anonymous wrote:
<h1>You may find it interesting to visit some information in the field of... Thanks!!! </h1>

On 05/08/2005 at 2:26:34 PM UTC James Moberg wrote:
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/

On 01/09/2006 at 9:30:57 PM UTC Normando wrote:
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.

On 02/07/2006 at 5:33:26 PM UTC Elmer Horne wrote:
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?

On 01/13/2007 at 7:19:46 PM UTC LoWu wrote:
Awesome!! thanks just what i was looking for.

On 02/16/2007 at 10:29:41 AM UTC Mklm wrote:
How handy!

On 03/18/2007 at 3:58:27 PM UTC I wrote:
Sweet this is perfect, thx.

On 03/25/2007 at 12:47:45 PM UTC OneSeventeen wrote:
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!

On 10/29/2007 at 2:17:32 AM UTC Hans wrote:
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?

On 03/26/2008 at 12:01:39 AM UTC mypharmalife wrote:
Agreed WBR, Alex http://world-pharma.pillsfm.com My favourite pharma supermarket

On 07/09/2010 at 7:36:37 AM UTC astare wrote:
In the Command key (Default) you should add fot value "%1" instead just %1.

On 12/17/2012 at 10:05:00 AM UTC hound wrote:
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?