How can I add a new file type to the Windows 7 context menu?

Justin Boyle September 20, 2012
Pinterest Stumbleupon Whatsapp

I want to add an option to create a new .cpp file from the context menu. Any suggestions?

  1. Saurav Azad
    September 21, 2012 at 6:17 pm

    thanks rajaa chowdhury that was really helpful for me too

    • Rajaa Chowdhury
      September 22, 2012 at 1:33 am

      Welcome Saurav. :)

      • Alan Wade
        September 23, 2012 at 5:54 am

        @Rajaa
        You could just post a link to the source : http://www.askvg.com/how-to-add-remove-items-from-new-menu-in-windows/
        that way the original author gets the credit instead of posting it as your own work.

        • Rajaa Chowdhury
          September 23, 2012 at 2:17 pm

          Alan,

          The only contribution of yours I see in every question thread is trying to bring people down. I am not trying to get any credit here, I am trying to give the solution to the question asked. For a change, why don't you try to help out on the questions asked, instead to poking around people for a change. Believe me, it will make you a more happier and fulfilled person than you seem to be at the current state of mind. Cheers!!! :)

  2. vasu gupta
    September 21, 2012 at 10:56 am

    first download the extension for the file type and cut paste it in a folder

  3. Rajaa Chowdhury
    September 21, 2012 at 3:31 am

    In Windows, whenever we right-click on Desktop or Explorer, we get "New" menu which contains shortcuts for various known file types. We can easily create new files using this handy "New" menu. Sometimes we may want to remove a few unwanted items from "New" menu or we may want to add a few necessary items to "New" menu which are not present. So in this tutorial, I'll tell you how can you add / remove items to / from "New" menu:

    A. To Add an Item in "New" menu:

    1. Type regedit in RUN dialog box and press Enter. Now expand "HKEY_CLASSES_ROOT" key.

    2. Now look for the file type which you want to add in "New" menu, e.g. for adding MP3 file type look for .MP3 key.

    3. Right-click on it and select "New -> Key" and give it name "ShellNew".

    4. In right-side pane, right-click and select "New -> String Value". Give it name "NullFile" and press Enter.

    5. Thats it. You'll immediately get the file type entry in "New" menu.

    B. To Remove an Item from "New" menu:

    1. Type regedit in RUN dialog box and press Enter. Now expand "HKEY_CLASSES_ROOT" key.

    2. Now look for the file type which you want to remove from "New" menu, e.g. for removing MP3 file type look for .MP3 key.

    3. Expand it and delete the "ShellNew" key.

    4. That's it. The file type will be removed from "New" menu.

    • Justin Boyle
      September 21, 2012 at 4:45 am

      Thanks! This worked great. All I needed to do after your instructions was restart explorer, and I am good to go.

      • Rajaa Chowdhury
        September 21, 2012 at 10:19 am

        You are welcome Justin, feeling great to be useful to you. :)

    • ahmed Fouad khalil
      September 21, 2012 at 10:24 am

      nice job rajaa

Ads by Google