How to Add Various File types to the Context Menu in Explorer


In Explorer, when using the File > New option, or when right-clicking and selecting New, you get a list of files that you can create, including text documents, folders, images, sounds, Excel spreadsheets, etc. If you want to be able to make new items, such as HTML files or RTF documents, you will have to edit the Registry.

 

Open the Registry Editor and navigate to HKEY_CLASSES_ROOT. Here, find the extension of the file type you want to be able to create, such as .htm or .rtf, and then find the key called ShellNew. If the file type does not have a ShellNew key, create one.

 

own context menu item

 

Now, in the right-pane of the Registry Editor, create a new String value called NullFile. Now you need to close the Registry Editor and restart Windows.

The next time you right-click, you will be able to create a new file (.htm in our example) by selecting File > New. A zero byte file will be created, which you can then edit.

Leave a Reply