pf » Right Click - Edit with Notepad

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
13 people found this page useful, what do you think?

Trackback Address: 69/F20BF0C5A0307F1E73DFFD28750D77E4
On 03/03/2004 at 10:31:22 AM MST 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 1:23:36 AM MST Anonymous wrote:
2
<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 MDT 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 9:30:57 PM MST 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 5:33:26 PM MST 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 7:19:46 PM MST LoWu wrote:
6
Awesome!! thanks just what i was looking for.

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

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

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




  



Spell Checker by Foundeo





Subscribe to my RSS Feed: solosub RSS
Tags