Open Any File Using Notepad From The Windows Context Menu

Add Right-click Option to Open With NotepadOur mission here at Geeky Ninja is to make things easy and simple. One of the complex job is opening any file with Notepad. You can open text files with .txt extension in notepad usually by double clicking on the file. If the file is an HTML or VBS etc  then you can open those file from the Open with > Notepad using the right-click context menu. But that doesn’t work for all files. So, for some files, you have to select notepad as the opening application from the option “Choose program”.

But all the complexity can be avoided by adding the Open with notepad option at right-click context menu for all types of file. There is a simple registry hack to do that.

Registry Hack To Add The “Open with Notepad” Option To The Right-Click Context Menu

Press Win + R and type “regedit” without the quotes and hit enter to open the registry editor.

Note: You are about to edit the registry, so it is always recommended that you should keep a backup of your registry to be in safe side before making any change. Learn how to backup registry.

Now navigate to the following path from the left pane of the registry editor:


If the entry “shell” is not available there, create it by right clicking on “ * ” and then by choosing New > Key. Give the name of that key as shell.

Add Right-click Option to Open With Notepad

Similarly, create another key Open with notepad under shell and command under the recently created key (Open with notepad).

Select the command key and right-click on Default at the right pane and select Modify.

Add Right-click Option to Open With Notepad

Under the Value data field put the following command:

notepad.exe %1

Add Right-click Option to Open With Notepad

and click on OK.

You should see the changes immediately.

Add Right-click Option to Open With Notepad

If you are not computer savvy and are afraid of editing the registry yourself then you can download the following registry file which will automatically do the job for you.

Download OpenWithNotepad registry entry.

The above link will download a zip file containing the registry hack to add the Open with Notepad option in the context menu along with the un-installation script.

Just extract the zipped file and double click on the OpenWithNotepad.reg file. If you want to remove the entry from the context menu, just double click on the RemoveOpenWithNotepad.reg file.

This trick also works on Windows 7 and Windows Vista.

Use Windows Notepad as your electronic diary

Who knew the humble Windows Notepad was capable of anything other than, well, taking text only notes.

If you’re searching for a simple application to write a diary or take daily notes, look no further than Notepad. So, what’s new you ask ?

Well, with this tip you can make notepad automatically add the current day and time to a document as soon as you open it and save you the headache of doing so yourself.

To accomplish this:

  1. Open Notepad (START->Run->notepad.exe)
  2. Type “.LOG” on the first line of the new document.
  3. Save the file and close Notepad.

Now when you open the same file again, you’ll see that Notepad would have added the current Date and time to the document automatically.


Write your entry for the day and close the file. Everytime you open the file, Notepad will add the current timestamp on a new line saving you the effort to do the same.