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 [HKEY_CLASSES_ROOT.pngShellNew] "NullFile"=""
One more thing:
If you want to add a file as a template for the new item, use
Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT.htmlShellNew] "FileName"="html.html"
and then place the file (html.html) in:
- For your own profile:
- For all users:
- For the whole system:
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.
- Uncheck .txt
- Click Apply
- Check .txt
- 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
[HKEY_CLASSES_ROOT.wilShellNew] 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.