How can I add an item to the ‘new’ context menu?

Posted on


When I right click anywhere I get an option to add a new file with a specified extension. I would like to add some custom files into this menu, so I can right click and create a new PHP file for instance.

How can I do this?


To add extensions of your choice to the list: create a file, add the content below, save it as whatever.reg, and run it.

Note: Replace .png with the file extension you want to add and replace whatever with anything you want.

Windows Registry Editor Version 5.00



One more thing:

If you want to add a file as a template for the new item, use

Windows Registry Editor Version 5.00

and then place the file (html.html) in:

  • For your own profile: %Userprofile%Templates
  • For all users: %Allusersprofile%Templates
  • For the whole system: %Systemroot%ShellNew

One more detail: if you want to delete the “Windows Live Call” entry, use:


ShellNewHandler helped me to restore my Windows 7 shell menu > New > txt document entry.

enter image description here

  1. Uncheck .txt
  2. Click Apply
  3. Check .txt
  4. Click Apply

Go in to registry editor and expand HKEY_CLASSES_ROOT

Go to .file_extention

and create a key called ShellNew

Inside that, create a new string key called NullFile with no value

For example, if I wanted to create a new entry for a blank .wil object* I would create

NullFile = ""

*if the file extension such as .wil does not exist, I would first create a file with that extension and double click it. Open it with the program of my choice as this would then create the other needed registry keys and make your job easier.

Leave a Reply

Your email address will not be published.