Right Click - Edit with Notepad

misc

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?

Trackbacks

Trackback Address: 69/F20BF0C5A0307F1E73DFFD28750D77E4

Comments

On 03/03/2004 at 12:31:22 PM EST sean wrote:
1
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 3:23:36 AM EST Anonymous wrote:
2
<h1>You may find it interesting to visit some information in the field of... Thanks!!! </h1>

On 05/08/2005 at 4:26:34 PM EDT James Moberg wrote:
3
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 11:30:57 PM EST Normando wrote:
4
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 7:33:26 PM EST Elmer Horne wrote:
5
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 9:19:46 PM EST LoWu wrote:
6
Awesome!! thanks just what i was looking for.

On 02/16/2007 at 12:29:41 PM EST Mklm wrote:
7
How handy!

On 03/18/2007 at 5:58:27 PM EDT I wrote:
8
Sweet this is perfect, thx.

On 03/25/2007 at 2:47:45 PM EDT OneSeventeen wrote:
9
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 4:17:32 AM EDT Hans wrote:
10
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 2:01:39 AM EDT mypharmalife wrote:
11
Agreed WBR, Alex http://world-pharma.pillsfm.com My favourite pharma supermarket

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

On 12/17/2012 at 12:05:00 PM EST hound wrote:
13
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



foundeo


did you hack my cf?