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












114















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?










share|improve this question

























  • try new menu editor tool included in Right Click Enhancer at rbsoft.org/downloads/right-click-enhancer

    – Ravi Patel
    Dec 15 '12 at 7:50






  • 1





    If you are having problems adding an entirely new file extension (rather than simply adding NullFile/FileName to an existing entry) in Windows 7, then see this other question... superuser.com/questions/588647/…

    – MrWhite
    Nov 1 '13 at 10:58






  • 1





    Ramesh’s site is a good source for manually adding entries.

    – Synetech
    Nov 10 '13 at 15:47
















114















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?










share|improve this question

























  • try new menu editor tool included in Right Click Enhancer at rbsoft.org/downloads/right-click-enhancer

    – Ravi Patel
    Dec 15 '12 at 7:50






  • 1





    If you are having problems adding an entirely new file extension (rather than simply adding NullFile/FileName to an existing entry) in Windows 7, then see this other question... superuser.com/questions/588647/…

    – MrWhite
    Nov 1 '13 at 10:58






  • 1





    Ramesh’s site is a good source for manually adding entries.

    – Synetech
    Nov 10 '13 at 15:47














114












114








114


63






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?










share|improve this question
















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?







windows context-menu






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 5 '17 at 19:04









Theta30

3023823




3023823










asked Sep 3 '09 at 2:28







James




















  • try new menu editor tool included in Right Click Enhancer at rbsoft.org/downloads/right-click-enhancer

    – Ravi Patel
    Dec 15 '12 at 7:50






  • 1





    If you are having problems adding an entirely new file extension (rather than simply adding NullFile/FileName to an existing entry) in Windows 7, then see this other question... superuser.com/questions/588647/…

    – MrWhite
    Nov 1 '13 at 10:58






  • 1





    Ramesh’s site is a good source for manually adding entries.

    – Synetech
    Nov 10 '13 at 15:47



















  • try new menu editor tool included in Right Click Enhancer at rbsoft.org/downloads/right-click-enhancer

    – Ravi Patel
    Dec 15 '12 at 7:50






  • 1





    If you are having problems adding an entirely new file extension (rather than simply adding NullFile/FileName to an existing entry) in Windows 7, then see this other question... superuser.com/questions/588647/…

    – MrWhite
    Nov 1 '13 at 10:58






  • 1





    Ramesh’s site is a good source for manually adding entries.

    – Synetech
    Nov 10 '13 at 15:47

















try new menu editor tool included in Right Click Enhancer at rbsoft.org/downloads/right-click-enhancer

– Ravi Patel
Dec 15 '12 at 7:50





try new menu editor tool included in Right Click Enhancer at rbsoft.org/downloads/right-click-enhancer

– Ravi Patel
Dec 15 '12 at 7:50




1




1





If you are having problems adding an entirely new file extension (rather than simply adding NullFile/FileName to an existing entry) in Windows 7, then see this other question... superuser.com/questions/588647/…

– MrWhite
Nov 1 '13 at 10:58





If you are having problems adding an entirely new file extension (rather than simply adding NullFile/FileName to an existing entry) in Windows 7, then see this other question... superuser.com/questions/588647/…

– MrWhite
Nov 1 '13 at 10:58




1




1





Ramesh’s site is a good source for manually adding entries.

– Synetech
Nov 10 '13 at 15:47





Ramesh’s site is a good source for manually adding entries.

– Synetech
Nov 10 '13 at 15:47










10 Answers
10






active

oldest

votes


















62














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"=""


Source






share|improve this answer





















  • 3





    Please consider link rot.

    – Mehper C. Palavuzlar
    Jan 26 '11 at 20:47






  • 1





    Good call. Answer edited :)

    – th3dude
    Jan 27 '11 at 21:45






  • 1





    +1, this works. How can we have a custom filename like "index.php" instead of that "New PHP file.php"?

    – fedmich
    Sep 28 '12 at 3:14






  • 1





    I had to run the .reg file twice to make it work. Thank you for this answer.

    – Akash
    Mar 15 '16 at 13:00








  • 2





    Didn't work for me in Windows 10, 1709 :( Restarted explorer and restarted machine even, still...

    – Arete
    Jan 12 '18 at 11:29



















63














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: %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:



[-HKEY_CLASSES_ROOT.wlcshrtctv2LiveCallShellNew]





share|improve this answer


























  • Cool thought, to able to use a file as a template!

    – Clay Nichols
    Jan 28 '11 at 20:02






  • 1





    In case anyone is wondering, the FileName entry appears to override the NullFile entry mentioned in other answers. You don't seem to need to delete an existing NullFile value. However, having both entries does seem to confuse some other 3rd party utilities, such as NirSoft's ShellMenuNew. (Windows 7)

    – MrWhite
    Nov 1 '13 at 10:55








  • 2





    I don't think it needs to be in %Userprofile%Templates etc if you give the whole path name to the file.

    – jiggunjer
    Jun 20 '15 at 2:39






  • 3





    What do I do if I want to create two shortcuts to two different templates for the same program? For instance, I used this method perfectly to create a context menu item for an "article" template for TeXworks. I now want to also add a "modified_article" template for TeXworks. Can I add both to the context menu? Thanks!

    – Prahar
    May 22 '16 at 18:19






  • 2





    In Windows 8.1, the Templates folders you list do not work. I get an "access denied" error. Where Templates should be is now a shortcut folder thing called a "junction" apparently--and it is a hidden "operating system specific" file. Therefore, the Templates folder is now moved. See this link for the new mapping (jimmah.com/vista/Security/junctions.aspx). Apparently it's now C:UsersUSER_NAMEAppDataRoamingMicrosoftWindowsTemplates for your own profile, for example.

    – Gabriel Staples
    Oct 30 '16 at 20:29





















18














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.






share|improve this answer



















  • 1





    Dosen't work on Windows 10, also I found this article, but this not working either: askvg.com/how-to-add-remove-items-from-new-menu-in-windows

    – Neo
    Apr 29 '16 at 22:28



















18














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






share|improve this answer





















  • 2





    Does this allow you to add new entries? From the screenshots and description it doesn't appear to.

    – MrWhite
    Nov 1 '13 at 10:16






  • 2





    this does NOT allow you to add entries... so it is completely irrelevant to the topic.

    – Eric Sebasta
    Jun 6 '17 at 14:05



















5














For removing entries from the list, here is a program which allows you to enable/disable entries from a GUI. Much easier than searching the registry!



Unfortunately, it does not allow you to add entries.






share|improve this answer
























  • This is just what I needed, thanks! Generally, all you really need is "New Text Document"...

    – Andrew
    Jun 14 '11 at 15:51



















5














None of these methods were working for me in Windows 10.



I finally found this page that explained that you need to reference another key that contains the name and default icon.



This is the minimum needed to create an entry, but it won't have an icon.



NOTE: the third entry is for a new key textfile referenced in the (Default) value of .txt




Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT.txt]
@="textfile"

[HKEY_CLASSES_ROOT.txtShellNew]
"NullFile"=""

[HKEY_CLASSES_ROOTtextfile]
@="Text Document"



Here are two ways to specify an icon




  1. Tell Explorer to use the default icon for the content type:



[HKEY_CLASSES_ROOT.txt] 
@="textfile"
"Content Type"="text/plain"
"PerceivedType"="text"



or 2. Specify an icon under textfile like so:




[HKEY_CLASSES_ROOTtextfileDefaultIcon]
@="%SystemRoot%\system32\imageres.dll,-102"



Oh, and at least for me, just closing and reopening Explorer (make sure to close all instances) is enough to reload the context menu. You don't need to restart the whole machine.






share|improve this answer
























  • At my side "Notepad++" changed the HKEY_CLASSES_ROOT.txt to @="Notepad++_file". So adding HKEY_CLASSES_ROOTNotepad++_file with @="Textfile" did the trick. Thanks, good find!

    – Tino
    Jul 28 '17 at 20:38





















4














You didn't say what version of Windows you're using--if it's XP you can download the TweakUI PowerToy from Microsoft (also covered in Wikipedia). Click on Templates and add/remove file types to your heart's content. Here's what it looks like:
enter image description here






share|improve this answer

































    3














    It seems that the other solutions here are outdated. At least none of these worked for me in Windows 10 v. 1709 Build 16299.192 (Edit: still works in version 1809). I did some testing in a VM and this is what works in Windows 10 1709, as of 2018.01.12:



    Add the registry file:



    Create a new registry file file with the following content:



    Windows Registry Editor Version 5.00

    ; new file type
    [HKEY_CLASSES_ROOT.xyz]
    @="xyz"

    ; template
    [HKEY_CLASSES_ROOT.xyzShellNew]
    "FileName"=""

    ; file type name
    [HKEY_CLASSES_ROOTxyz]
    @="XYZ test file"


    Replace xyz with the extension you would like to add. And replace XYZ test file with the name of the file extension (e.g a .scss file would be "syntactically awesome style sheet file”). If you want to use a template file see the explanation below.



    It might be necessary to restart Windows Explorer after you have added the registry file. You can restart explorer.exe by typing the following in CMD:



    taskkill /f /im explorer.exe & start explorer.exe


    enter image description here



    enter image description here





    Explanation of the code:



    [HKEY_CLASSES_ROOT.xyz]
    @="xyz"


    Will create a new file type in the registry.



    [HKEY_CLASSES_ROOT.xyzShellNew]
    "FileName"=""


    This will enable you to use a template for all new files of this file format. We could for example write "template.xyz" and make a new file called “template.xyz” and use it a s a template. So each time you make a new file it will be populated with pre-made content. As Eduardo Molteni mentioned the paths for the template files are: %Userprofile%Templates, %Allusersprofile%Templates or for the whole system %Systemroot%ShellNew. In this example we haven’t specified any template name because we don’t want to use any.



    [HKEY_CLASSES_ROOTxyz]
    @="XYZ test file"


    This will be the name of the file type both for the context menu and the newly created files. As far as I know leaving this value blank does not work.



    Icon:



    The icon is added once Windows have associated a software with the file type.






    share|improve this answer





















    • 1





      Great answer, thanks. Please note in Windows 10, %userprofile%Templates has moved to %appdata%MicrosoftWindowsTemplates and %Allusersprofile%Templates has moved to %programdata%MicrosoftWindowsTemplates

      – TheImirOfGroofunkistan
      May 30 '18 at 16:18





















    2














    Create a plain text file and add the following line to it:





    Windows Registry Editor Version 5.00

    [HKEY_CLASSES_ROOT.txtShellNew]
    "NullFile"=""




    Save the file and rename it's extention to a .reg file. E.g. "myNewItem.reg".
    Be sure that you renamed the extention and not only the file name like (myNewItem.reg.txt)



    Double click the file and it will update your registry.



    The next step, and that is very important, restart your computer directly. So DON'T try to open the content menu to see if it's already works! First restart you computer.



    If you open the content menu to see if your amazing new item is already listed, the registry will be restored ...



    Also try this program: http://sourceforge.net/projects/shellnewhandler/






    share|improve this answer


























    • whether or not I restart immediately I can't get this to work in Windows 8.1. No idea why.

      – Gabriel Staples
      Oct 30 '16 at 23:19



















    1














    The registry key:



    HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerDiscardablePostSetupShellNew


    cannot be changed to accomplish what is displayed or not displayed on the "New" context menu. If you change that value, it will be overridden by Explorer the next time you right click and bring up the "New" context menu. Try it and you will see what I mean.






    share|improve this answer
























      protected by Community Dec 8 '11 at 13:32



      Thank you for your interest in this question.
      Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).



      Would you like to answer one of these unanswered questions instead?













      10 Answers
      10






      active

      oldest

      votes








      10 Answers
      10






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      62














      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"=""


      Source






      share|improve this answer





















      • 3





        Please consider link rot.

        – Mehper C. Palavuzlar
        Jan 26 '11 at 20:47






      • 1





        Good call. Answer edited :)

        – th3dude
        Jan 27 '11 at 21:45






      • 1





        +1, this works. How can we have a custom filename like "index.php" instead of that "New PHP file.php"?

        – fedmich
        Sep 28 '12 at 3:14






      • 1





        I had to run the .reg file twice to make it work. Thank you for this answer.

        – Akash
        Mar 15 '16 at 13:00








      • 2





        Didn't work for me in Windows 10, 1709 :( Restarted explorer and restarted machine even, still...

        – Arete
        Jan 12 '18 at 11:29
















      62














      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"=""


      Source






      share|improve this answer





















      • 3





        Please consider link rot.

        – Mehper C. Palavuzlar
        Jan 26 '11 at 20:47






      • 1





        Good call. Answer edited :)

        – th3dude
        Jan 27 '11 at 21:45






      • 1





        +1, this works. How can we have a custom filename like "index.php" instead of that "New PHP file.php"?

        – fedmich
        Sep 28 '12 at 3:14






      • 1





        I had to run the .reg file twice to make it work. Thank you for this answer.

        – Akash
        Mar 15 '16 at 13:00








      • 2





        Didn't work for me in Windows 10, 1709 :( Restarted explorer and restarted machine even, still...

        – Arete
        Jan 12 '18 at 11:29














      62












      62








      62







      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"=""


      Source






      share|improve this answer















      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"=""


      Source







      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited Jan 27 '11 at 21:45

























      answered Sep 3 '09 at 2:41









      th3dudeth3dude

      8,89764064




      8,89764064








      • 3





        Please consider link rot.

        – Mehper C. Palavuzlar
        Jan 26 '11 at 20:47






      • 1





        Good call. Answer edited :)

        – th3dude
        Jan 27 '11 at 21:45






      • 1





        +1, this works. How can we have a custom filename like "index.php" instead of that "New PHP file.php"?

        – fedmich
        Sep 28 '12 at 3:14






      • 1





        I had to run the .reg file twice to make it work. Thank you for this answer.

        – Akash
        Mar 15 '16 at 13:00








      • 2





        Didn't work for me in Windows 10, 1709 :( Restarted explorer and restarted machine even, still...

        – Arete
        Jan 12 '18 at 11:29














      • 3





        Please consider link rot.

        – Mehper C. Palavuzlar
        Jan 26 '11 at 20:47






      • 1





        Good call. Answer edited :)

        – th3dude
        Jan 27 '11 at 21:45






      • 1





        +1, this works. How can we have a custom filename like "index.php" instead of that "New PHP file.php"?

        – fedmich
        Sep 28 '12 at 3:14






      • 1





        I had to run the .reg file twice to make it work. Thank you for this answer.

        – Akash
        Mar 15 '16 at 13:00








      • 2





        Didn't work for me in Windows 10, 1709 :( Restarted explorer and restarted machine even, still...

        – Arete
        Jan 12 '18 at 11:29








      3




      3





      Please consider link rot.

      – Mehper C. Palavuzlar
      Jan 26 '11 at 20:47





      Please consider link rot.

      – Mehper C. Palavuzlar
      Jan 26 '11 at 20:47




      1




      1





      Good call. Answer edited :)

      – th3dude
      Jan 27 '11 at 21:45





      Good call. Answer edited :)

      – th3dude
      Jan 27 '11 at 21:45




      1




      1





      +1, this works. How can we have a custom filename like "index.php" instead of that "New PHP file.php"?

      – fedmich
      Sep 28 '12 at 3:14





      +1, this works. How can we have a custom filename like "index.php" instead of that "New PHP file.php"?

      – fedmich
      Sep 28 '12 at 3:14




      1




      1





      I had to run the .reg file twice to make it work. Thank you for this answer.

      – Akash
      Mar 15 '16 at 13:00







      I had to run the .reg file twice to make it work. Thank you for this answer.

      – Akash
      Mar 15 '16 at 13:00






      2




      2





      Didn't work for me in Windows 10, 1709 :( Restarted explorer and restarted machine even, still...

      – Arete
      Jan 12 '18 at 11:29





      Didn't work for me in Windows 10, 1709 :( Restarted explorer and restarted machine even, still...

      – Arete
      Jan 12 '18 at 11:29













      63














      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: %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:



      [-HKEY_CLASSES_ROOT.wlcshrtctv2LiveCallShellNew]





      share|improve this answer


























      • Cool thought, to able to use a file as a template!

        – Clay Nichols
        Jan 28 '11 at 20:02






      • 1





        In case anyone is wondering, the FileName entry appears to override the NullFile entry mentioned in other answers. You don't seem to need to delete an existing NullFile value. However, having both entries does seem to confuse some other 3rd party utilities, such as NirSoft's ShellMenuNew. (Windows 7)

        – MrWhite
        Nov 1 '13 at 10:55








      • 2





        I don't think it needs to be in %Userprofile%Templates etc if you give the whole path name to the file.

        – jiggunjer
        Jun 20 '15 at 2:39






      • 3





        What do I do if I want to create two shortcuts to two different templates for the same program? For instance, I used this method perfectly to create a context menu item for an "article" template for TeXworks. I now want to also add a "modified_article" template for TeXworks. Can I add both to the context menu? Thanks!

        – Prahar
        May 22 '16 at 18:19






      • 2





        In Windows 8.1, the Templates folders you list do not work. I get an "access denied" error. Where Templates should be is now a shortcut folder thing called a "junction" apparently--and it is a hidden "operating system specific" file. Therefore, the Templates folder is now moved. See this link for the new mapping (jimmah.com/vista/Security/junctions.aspx). Apparently it's now C:UsersUSER_NAMEAppDataRoamingMicrosoftWindowsTemplates for your own profile, for example.

        – Gabriel Staples
        Oct 30 '16 at 20:29


















      63














      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: %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:



      [-HKEY_CLASSES_ROOT.wlcshrtctv2LiveCallShellNew]





      share|improve this answer


























      • Cool thought, to able to use a file as a template!

        – Clay Nichols
        Jan 28 '11 at 20:02






      • 1





        In case anyone is wondering, the FileName entry appears to override the NullFile entry mentioned in other answers. You don't seem to need to delete an existing NullFile value. However, having both entries does seem to confuse some other 3rd party utilities, such as NirSoft's ShellMenuNew. (Windows 7)

        – MrWhite
        Nov 1 '13 at 10:55








      • 2





        I don't think it needs to be in %Userprofile%Templates etc if you give the whole path name to the file.

        – jiggunjer
        Jun 20 '15 at 2:39






      • 3





        What do I do if I want to create two shortcuts to two different templates for the same program? For instance, I used this method perfectly to create a context menu item for an "article" template for TeXworks. I now want to also add a "modified_article" template for TeXworks. Can I add both to the context menu? Thanks!

        – Prahar
        May 22 '16 at 18:19






      • 2





        In Windows 8.1, the Templates folders you list do not work. I get an "access denied" error. Where Templates should be is now a shortcut folder thing called a "junction" apparently--and it is a hidden "operating system specific" file. Therefore, the Templates folder is now moved. See this link for the new mapping (jimmah.com/vista/Security/junctions.aspx). Apparently it's now C:UsersUSER_NAMEAppDataRoamingMicrosoftWindowsTemplates for your own profile, for example.

        – Gabriel Staples
        Oct 30 '16 at 20:29
















      63












      63








      63







      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: %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:



      [-HKEY_CLASSES_ROOT.wlcshrtctv2LiveCallShellNew]





      share|improve this answer















      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: %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:



      [-HKEY_CLASSES_ROOT.wlcshrtctv2LiveCallShellNew]






      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited Apr 7 '14 at 15:31









      Daniel B

      33.9k76387




      33.9k76387










      answered Sep 25 '09 at 18:24









      Eduardo MolteniEduardo Molteni

      1,29362335




      1,29362335













      • Cool thought, to able to use a file as a template!

        – Clay Nichols
        Jan 28 '11 at 20:02






      • 1





        In case anyone is wondering, the FileName entry appears to override the NullFile entry mentioned in other answers. You don't seem to need to delete an existing NullFile value. However, having both entries does seem to confuse some other 3rd party utilities, such as NirSoft's ShellMenuNew. (Windows 7)

        – MrWhite
        Nov 1 '13 at 10:55








      • 2





        I don't think it needs to be in %Userprofile%Templates etc if you give the whole path name to the file.

        – jiggunjer
        Jun 20 '15 at 2:39






      • 3





        What do I do if I want to create two shortcuts to two different templates for the same program? For instance, I used this method perfectly to create a context menu item for an "article" template for TeXworks. I now want to also add a "modified_article" template for TeXworks. Can I add both to the context menu? Thanks!

        – Prahar
        May 22 '16 at 18:19






      • 2





        In Windows 8.1, the Templates folders you list do not work. I get an "access denied" error. Where Templates should be is now a shortcut folder thing called a "junction" apparently--and it is a hidden "operating system specific" file. Therefore, the Templates folder is now moved. See this link for the new mapping (jimmah.com/vista/Security/junctions.aspx). Apparently it's now C:UsersUSER_NAMEAppDataRoamingMicrosoftWindowsTemplates for your own profile, for example.

        – Gabriel Staples
        Oct 30 '16 at 20:29





















      • Cool thought, to able to use a file as a template!

        – Clay Nichols
        Jan 28 '11 at 20:02






      • 1





        In case anyone is wondering, the FileName entry appears to override the NullFile entry mentioned in other answers. You don't seem to need to delete an existing NullFile value. However, having both entries does seem to confuse some other 3rd party utilities, such as NirSoft's ShellMenuNew. (Windows 7)

        – MrWhite
        Nov 1 '13 at 10:55








      • 2





        I don't think it needs to be in %Userprofile%Templates etc if you give the whole path name to the file.

        – jiggunjer
        Jun 20 '15 at 2:39






      • 3





        What do I do if I want to create two shortcuts to two different templates for the same program? For instance, I used this method perfectly to create a context menu item for an "article" template for TeXworks. I now want to also add a "modified_article" template for TeXworks. Can I add both to the context menu? Thanks!

        – Prahar
        May 22 '16 at 18:19






      • 2





        In Windows 8.1, the Templates folders you list do not work. I get an "access denied" error. Where Templates should be is now a shortcut folder thing called a "junction" apparently--and it is a hidden "operating system specific" file. Therefore, the Templates folder is now moved. See this link for the new mapping (jimmah.com/vista/Security/junctions.aspx). Apparently it's now C:UsersUSER_NAMEAppDataRoamingMicrosoftWindowsTemplates for your own profile, for example.

        – Gabriel Staples
        Oct 30 '16 at 20:29



















      Cool thought, to able to use a file as a template!

      – Clay Nichols
      Jan 28 '11 at 20:02





      Cool thought, to able to use a file as a template!

      – Clay Nichols
      Jan 28 '11 at 20:02




      1




      1





      In case anyone is wondering, the FileName entry appears to override the NullFile entry mentioned in other answers. You don't seem to need to delete an existing NullFile value. However, having both entries does seem to confuse some other 3rd party utilities, such as NirSoft's ShellMenuNew. (Windows 7)

      – MrWhite
      Nov 1 '13 at 10:55







      In case anyone is wondering, the FileName entry appears to override the NullFile entry mentioned in other answers. You don't seem to need to delete an existing NullFile value. However, having both entries does seem to confuse some other 3rd party utilities, such as NirSoft's ShellMenuNew. (Windows 7)

      – MrWhite
      Nov 1 '13 at 10:55






      2




      2





      I don't think it needs to be in %Userprofile%Templates etc if you give the whole path name to the file.

      – jiggunjer
      Jun 20 '15 at 2:39





      I don't think it needs to be in %Userprofile%Templates etc if you give the whole path name to the file.

      – jiggunjer
      Jun 20 '15 at 2:39




      3




      3





      What do I do if I want to create two shortcuts to two different templates for the same program? For instance, I used this method perfectly to create a context menu item for an "article" template for TeXworks. I now want to also add a "modified_article" template for TeXworks. Can I add both to the context menu? Thanks!

      – Prahar
      May 22 '16 at 18:19





      What do I do if I want to create two shortcuts to two different templates for the same program? For instance, I used this method perfectly to create a context menu item for an "article" template for TeXworks. I now want to also add a "modified_article" template for TeXworks. Can I add both to the context menu? Thanks!

      – Prahar
      May 22 '16 at 18:19




      2




      2





      In Windows 8.1, the Templates folders you list do not work. I get an "access denied" error. Where Templates should be is now a shortcut folder thing called a "junction" apparently--and it is a hidden "operating system specific" file. Therefore, the Templates folder is now moved. See this link for the new mapping (jimmah.com/vista/Security/junctions.aspx). Apparently it's now C:UsersUSER_NAMEAppDataRoamingMicrosoftWindowsTemplates for your own profile, for example.

      – Gabriel Staples
      Oct 30 '16 at 20:29







      In Windows 8.1, the Templates folders you list do not work. I get an "access denied" error. Where Templates should be is now a shortcut folder thing called a "junction" apparently--and it is a hidden "operating system specific" file. Therefore, the Templates folder is now moved. See this link for the new mapping (jimmah.com/vista/Security/junctions.aspx). Apparently it's now C:UsersUSER_NAMEAppDataRoamingMicrosoftWindowsTemplates for your own profile, for example.

      – Gabriel Staples
      Oct 30 '16 at 20:29













      18














      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.






      share|improve this answer



















      • 1





        Dosen't work on Windows 10, also I found this article, but this not working either: askvg.com/how-to-add-remove-items-from-new-menu-in-windows

        – Neo
        Apr 29 '16 at 22:28
















      18














      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.






      share|improve this answer



















      • 1





        Dosen't work on Windows 10, also I found this article, but this not working either: askvg.com/how-to-add-remove-items-from-new-menu-in-windows

        – Neo
        Apr 29 '16 at 22:28














      18












      18








      18







      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.






      share|improve this answer













      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.







      share|improve this answer












      share|improve this answer



      share|improve this answer










      answered Sep 3 '09 at 2:49









      William HilsumWilliam Hilsum

      108k16160253




      108k16160253








      • 1





        Dosen't work on Windows 10, also I found this article, but this not working either: askvg.com/how-to-add-remove-items-from-new-menu-in-windows

        – Neo
        Apr 29 '16 at 22:28














      • 1





        Dosen't work on Windows 10, also I found this article, but this not working either: askvg.com/how-to-add-remove-items-from-new-menu-in-windows

        – Neo
        Apr 29 '16 at 22:28








      1




      1





      Dosen't work on Windows 10, also I found this article, but this not working either: askvg.com/how-to-add-remove-items-from-new-menu-in-windows

      – Neo
      Apr 29 '16 at 22:28





      Dosen't work on Windows 10, also I found this article, but this not working either: askvg.com/how-to-add-remove-items-from-new-menu-in-windows

      – Neo
      Apr 29 '16 at 22:28











      18














      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






      share|improve this answer





















      • 2





        Does this allow you to add new entries? From the screenshots and description it doesn't appear to.

        – MrWhite
        Nov 1 '13 at 10:16






      • 2





        this does NOT allow you to add entries... so it is completely irrelevant to the topic.

        – Eric Sebasta
        Jun 6 '17 at 14:05
















      18














      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






      share|improve this answer





















      • 2





        Does this allow you to add new entries? From the screenshots and description it doesn't appear to.

        – MrWhite
        Nov 1 '13 at 10:16






      • 2





        this does NOT allow you to add entries... so it is completely irrelevant to the topic.

        – Eric Sebasta
        Jun 6 '17 at 14:05














      18












      18








      18







      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






      share|improve this answer















      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







      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited Sep 16 '11 at 3:37









      3498DB

      15.8k114762




      15.8k114762










      answered Sep 16 '11 at 1:23









      EricEric

      18912




      18912








      • 2





        Does this allow you to add new entries? From the screenshots and description it doesn't appear to.

        – MrWhite
        Nov 1 '13 at 10:16






      • 2





        this does NOT allow you to add entries... so it is completely irrelevant to the topic.

        – Eric Sebasta
        Jun 6 '17 at 14:05














      • 2





        Does this allow you to add new entries? From the screenshots and description it doesn't appear to.

        – MrWhite
        Nov 1 '13 at 10:16






      • 2





        this does NOT allow you to add entries... so it is completely irrelevant to the topic.

        – Eric Sebasta
        Jun 6 '17 at 14:05








      2




      2





      Does this allow you to add new entries? From the screenshots and description it doesn't appear to.

      – MrWhite
      Nov 1 '13 at 10:16





      Does this allow you to add new entries? From the screenshots and description it doesn't appear to.

      – MrWhite
      Nov 1 '13 at 10:16




      2




      2





      this does NOT allow you to add entries... so it is completely irrelevant to the topic.

      – Eric Sebasta
      Jun 6 '17 at 14:05





      this does NOT allow you to add entries... so it is completely irrelevant to the topic.

      – Eric Sebasta
      Jun 6 '17 at 14:05











      5














      For removing entries from the list, here is a program which allows you to enable/disable entries from a GUI. Much easier than searching the registry!



      Unfortunately, it does not allow you to add entries.






      share|improve this answer
























      • This is just what I needed, thanks! Generally, all you really need is "New Text Document"...

        – Andrew
        Jun 14 '11 at 15:51
















      5














      For removing entries from the list, here is a program which allows you to enable/disable entries from a GUI. Much easier than searching the registry!



      Unfortunately, it does not allow you to add entries.






      share|improve this answer
























      • This is just what I needed, thanks! Generally, all you really need is "New Text Document"...

        – Andrew
        Jun 14 '11 at 15:51














      5












      5








      5







      For removing entries from the list, here is a program which allows you to enable/disable entries from a GUI. Much easier than searching the registry!



      Unfortunately, it does not allow you to add entries.






      share|improve this answer













      For removing entries from the list, here is a program which allows you to enable/disable entries from a GUI. Much easier than searching the registry!



      Unfortunately, it does not allow you to add entries.







      share|improve this answer












      share|improve this answer



      share|improve this answer










      answered Mar 12 '11 at 14:19









      BlorgbeardBlorgbeard

      2,12532431




      2,12532431













      • This is just what I needed, thanks! Generally, all you really need is "New Text Document"...

        – Andrew
        Jun 14 '11 at 15:51



















      • This is just what I needed, thanks! Generally, all you really need is "New Text Document"...

        – Andrew
        Jun 14 '11 at 15:51

















      This is just what I needed, thanks! Generally, all you really need is "New Text Document"...

      – Andrew
      Jun 14 '11 at 15:51





      This is just what I needed, thanks! Generally, all you really need is "New Text Document"...

      – Andrew
      Jun 14 '11 at 15:51











      5














      None of these methods were working for me in Windows 10.



      I finally found this page that explained that you need to reference another key that contains the name and default icon.



      This is the minimum needed to create an entry, but it won't have an icon.



      NOTE: the third entry is for a new key textfile referenced in the (Default) value of .txt




      Windows Registry Editor Version 5.00

      [HKEY_CLASSES_ROOT.txt]
      @="textfile"

      [HKEY_CLASSES_ROOT.txtShellNew]
      "NullFile"=""

      [HKEY_CLASSES_ROOTtextfile]
      @="Text Document"



      Here are two ways to specify an icon




      1. Tell Explorer to use the default icon for the content type:



      [HKEY_CLASSES_ROOT.txt] 
      @="textfile"
      "Content Type"="text/plain"
      "PerceivedType"="text"



      or 2. Specify an icon under textfile like so:




      [HKEY_CLASSES_ROOTtextfileDefaultIcon]
      @="%SystemRoot%\system32\imageres.dll,-102"



      Oh, and at least for me, just closing and reopening Explorer (make sure to close all instances) is enough to reload the context menu. You don't need to restart the whole machine.






      share|improve this answer
























      • At my side "Notepad++" changed the HKEY_CLASSES_ROOT.txt to @="Notepad++_file". So adding HKEY_CLASSES_ROOTNotepad++_file with @="Textfile" did the trick. Thanks, good find!

        – Tino
        Jul 28 '17 at 20:38


















      5














      None of these methods were working for me in Windows 10.



      I finally found this page that explained that you need to reference another key that contains the name and default icon.



      This is the minimum needed to create an entry, but it won't have an icon.



      NOTE: the third entry is for a new key textfile referenced in the (Default) value of .txt




      Windows Registry Editor Version 5.00

      [HKEY_CLASSES_ROOT.txt]
      @="textfile"

      [HKEY_CLASSES_ROOT.txtShellNew]
      "NullFile"=""

      [HKEY_CLASSES_ROOTtextfile]
      @="Text Document"



      Here are two ways to specify an icon




      1. Tell Explorer to use the default icon for the content type:



      [HKEY_CLASSES_ROOT.txt] 
      @="textfile"
      "Content Type"="text/plain"
      "PerceivedType"="text"



      or 2. Specify an icon under textfile like so:




      [HKEY_CLASSES_ROOTtextfileDefaultIcon]
      @="%SystemRoot%\system32\imageres.dll,-102"



      Oh, and at least for me, just closing and reopening Explorer (make sure to close all instances) is enough to reload the context menu. You don't need to restart the whole machine.






      share|improve this answer
























      • At my side "Notepad++" changed the HKEY_CLASSES_ROOT.txt to @="Notepad++_file". So adding HKEY_CLASSES_ROOTNotepad++_file with @="Textfile" did the trick. Thanks, good find!

        – Tino
        Jul 28 '17 at 20:38
















      5












      5








      5







      None of these methods were working for me in Windows 10.



      I finally found this page that explained that you need to reference another key that contains the name and default icon.



      This is the minimum needed to create an entry, but it won't have an icon.



      NOTE: the third entry is for a new key textfile referenced in the (Default) value of .txt




      Windows Registry Editor Version 5.00

      [HKEY_CLASSES_ROOT.txt]
      @="textfile"

      [HKEY_CLASSES_ROOT.txtShellNew]
      "NullFile"=""

      [HKEY_CLASSES_ROOTtextfile]
      @="Text Document"



      Here are two ways to specify an icon




      1. Tell Explorer to use the default icon for the content type:



      [HKEY_CLASSES_ROOT.txt] 
      @="textfile"
      "Content Type"="text/plain"
      "PerceivedType"="text"



      or 2. Specify an icon under textfile like so:




      [HKEY_CLASSES_ROOTtextfileDefaultIcon]
      @="%SystemRoot%\system32\imageres.dll,-102"



      Oh, and at least for me, just closing and reopening Explorer (make sure to close all instances) is enough to reload the context menu. You don't need to restart the whole machine.






      share|improve this answer













      None of these methods were working for me in Windows 10.



      I finally found this page that explained that you need to reference another key that contains the name and default icon.



      This is the minimum needed to create an entry, but it won't have an icon.



      NOTE: the third entry is for a new key textfile referenced in the (Default) value of .txt




      Windows Registry Editor Version 5.00

      [HKEY_CLASSES_ROOT.txt]
      @="textfile"

      [HKEY_CLASSES_ROOT.txtShellNew]
      "NullFile"=""

      [HKEY_CLASSES_ROOTtextfile]
      @="Text Document"



      Here are two ways to specify an icon




      1. Tell Explorer to use the default icon for the content type:



      [HKEY_CLASSES_ROOT.txt] 
      @="textfile"
      "Content Type"="text/plain"
      "PerceivedType"="text"



      or 2. Specify an icon under textfile like so:




      [HKEY_CLASSES_ROOTtextfileDefaultIcon]
      @="%SystemRoot%\system32\imageres.dll,-102"



      Oh, and at least for me, just closing and reopening Explorer (make sure to close all instances) is enough to reload the context menu. You don't need to restart the whole machine.







      share|improve this answer












      share|improve this answer



      share|improve this answer










      answered Jun 24 '17 at 13:31









      submansubman

      2,1391216




      2,1391216













      • At my side "Notepad++" changed the HKEY_CLASSES_ROOT.txt to @="Notepad++_file". So adding HKEY_CLASSES_ROOTNotepad++_file with @="Textfile" did the trick. Thanks, good find!

        – Tino
        Jul 28 '17 at 20:38





















      • At my side "Notepad++" changed the HKEY_CLASSES_ROOT.txt to @="Notepad++_file". So adding HKEY_CLASSES_ROOTNotepad++_file with @="Textfile" did the trick. Thanks, good find!

        – Tino
        Jul 28 '17 at 20:38



















      At my side "Notepad++" changed the HKEY_CLASSES_ROOT.txt to @="Notepad++_file". So adding HKEY_CLASSES_ROOTNotepad++_file with @="Textfile" did the trick. Thanks, good find!

      – Tino
      Jul 28 '17 at 20:38







      At my side "Notepad++" changed the HKEY_CLASSES_ROOT.txt to @="Notepad++_file". So adding HKEY_CLASSES_ROOTNotepad++_file with @="Textfile" did the trick. Thanks, good find!

      – Tino
      Jul 28 '17 at 20:38













      4














      You didn't say what version of Windows you're using--if it's XP you can download the TweakUI PowerToy from Microsoft (also covered in Wikipedia). Click on Templates and add/remove file types to your heart's content. Here's what it looks like:
      enter image description here






      share|improve this answer






























        4














        You didn't say what version of Windows you're using--if it's XP you can download the TweakUI PowerToy from Microsoft (also covered in Wikipedia). Click on Templates and add/remove file types to your heart's content. Here's what it looks like:
        enter image description here






        share|improve this answer




























          4












          4








          4







          You didn't say what version of Windows you're using--if it's XP you can download the TweakUI PowerToy from Microsoft (also covered in Wikipedia). Click on Templates and add/remove file types to your heart's content. Here's what it looks like:
          enter image description here






          share|improve this answer















          You didn't say what version of Windows you're using--if it's XP you can download the TweakUI PowerToy from Microsoft (also covered in Wikipedia). Click on Templates and add/remove file types to your heart's content. Here's what it looks like:
          enter image description here







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Feb 12 '13 at 21:08

























          answered Jan 26 '13 at 22:35









          User5910User5910

          3911213




          3911213























              3














              It seems that the other solutions here are outdated. At least none of these worked for me in Windows 10 v. 1709 Build 16299.192 (Edit: still works in version 1809). I did some testing in a VM and this is what works in Windows 10 1709, as of 2018.01.12:



              Add the registry file:



              Create a new registry file file with the following content:



              Windows Registry Editor Version 5.00

              ; new file type
              [HKEY_CLASSES_ROOT.xyz]
              @="xyz"

              ; template
              [HKEY_CLASSES_ROOT.xyzShellNew]
              "FileName"=""

              ; file type name
              [HKEY_CLASSES_ROOTxyz]
              @="XYZ test file"


              Replace xyz with the extension you would like to add. And replace XYZ test file with the name of the file extension (e.g a .scss file would be "syntactically awesome style sheet file”). If you want to use a template file see the explanation below.



              It might be necessary to restart Windows Explorer after you have added the registry file. You can restart explorer.exe by typing the following in CMD:



              taskkill /f /im explorer.exe & start explorer.exe


              enter image description here



              enter image description here





              Explanation of the code:



              [HKEY_CLASSES_ROOT.xyz]
              @="xyz"


              Will create a new file type in the registry.



              [HKEY_CLASSES_ROOT.xyzShellNew]
              "FileName"=""


              This will enable you to use a template for all new files of this file format. We could for example write "template.xyz" and make a new file called “template.xyz” and use it a s a template. So each time you make a new file it will be populated with pre-made content. As Eduardo Molteni mentioned the paths for the template files are: %Userprofile%Templates, %Allusersprofile%Templates or for the whole system %Systemroot%ShellNew. In this example we haven’t specified any template name because we don’t want to use any.



              [HKEY_CLASSES_ROOTxyz]
              @="XYZ test file"


              This will be the name of the file type both for the context menu and the newly created files. As far as I know leaving this value blank does not work.



              Icon:



              The icon is added once Windows have associated a software with the file type.






              share|improve this answer





















              • 1





                Great answer, thanks. Please note in Windows 10, %userprofile%Templates has moved to %appdata%MicrosoftWindowsTemplates and %Allusersprofile%Templates has moved to %programdata%MicrosoftWindowsTemplates

                – TheImirOfGroofunkistan
                May 30 '18 at 16:18


















              3














              It seems that the other solutions here are outdated. At least none of these worked for me in Windows 10 v. 1709 Build 16299.192 (Edit: still works in version 1809). I did some testing in a VM and this is what works in Windows 10 1709, as of 2018.01.12:



              Add the registry file:



              Create a new registry file file with the following content:



              Windows Registry Editor Version 5.00

              ; new file type
              [HKEY_CLASSES_ROOT.xyz]
              @="xyz"

              ; template
              [HKEY_CLASSES_ROOT.xyzShellNew]
              "FileName"=""

              ; file type name
              [HKEY_CLASSES_ROOTxyz]
              @="XYZ test file"


              Replace xyz with the extension you would like to add. And replace XYZ test file with the name of the file extension (e.g a .scss file would be "syntactically awesome style sheet file”). If you want to use a template file see the explanation below.



              It might be necessary to restart Windows Explorer after you have added the registry file. You can restart explorer.exe by typing the following in CMD:



              taskkill /f /im explorer.exe & start explorer.exe


              enter image description here



              enter image description here





              Explanation of the code:



              [HKEY_CLASSES_ROOT.xyz]
              @="xyz"


              Will create a new file type in the registry.



              [HKEY_CLASSES_ROOT.xyzShellNew]
              "FileName"=""


              This will enable you to use a template for all new files of this file format. We could for example write "template.xyz" and make a new file called “template.xyz” and use it a s a template. So each time you make a new file it will be populated with pre-made content. As Eduardo Molteni mentioned the paths for the template files are: %Userprofile%Templates, %Allusersprofile%Templates or for the whole system %Systemroot%ShellNew. In this example we haven’t specified any template name because we don’t want to use any.



              [HKEY_CLASSES_ROOTxyz]
              @="XYZ test file"


              This will be the name of the file type both for the context menu and the newly created files. As far as I know leaving this value blank does not work.



              Icon:



              The icon is added once Windows have associated a software with the file type.






              share|improve this answer





















              • 1





                Great answer, thanks. Please note in Windows 10, %userprofile%Templates has moved to %appdata%MicrosoftWindowsTemplates and %Allusersprofile%Templates has moved to %programdata%MicrosoftWindowsTemplates

                – TheImirOfGroofunkistan
                May 30 '18 at 16:18
















              3












              3








              3







              It seems that the other solutions here are outdated. At least none of these worked for me in Windows 10 v. 1709 Build 16299.192 (Edit: still works in version 1809). I did some testing in a VM and this is what works in Windows 10 1709, as of 2018.01.12:



              Add the registry file:



              Create a new registry file file with the following content:



              Windows Registry Editor Version 5.00

              ; new file type
              [HKEY_CLASSES_ROOT.xyz]
              @="xyz"

              ; template
              [HKEY_CLASSES_ROOT.xyzShellNew]
              "FileName"=""

              ; file type name
              [HKEY_CLASSES_ROOTxyz]
              @="XYZ test file"


              Replace xyz with the extension you would like to add. And replace XYZ test file with the name of the file extension (e.g a .scss file would be "syntactically awesome style sheet file”). If you want to use a template file see the explanation below.



              It might be necessary to restart Windows Explorer after you have added the registry file. You can restart explorer.exe by typing the following in CMD:



              taskkill /f /im explorer.exe & start explorer.exe


              enter image description here



              enter image description here





              Explanation of the code:



              [HKEY_CLASSES_ROOT.xyz]
              @="xyz"


              Will create a new file type in the registry.



              [HKEY_CLASSES_ROOT.xyzShellNew]
              "FileName"=""


              This will enable you to use a template for all new files of this file format. We could for example write "template.xyz" and make a new file called “template.xyz” and use it a s a template. So each time you make a new file it will be populated with pre-made content. As Eduardo Molteni mentioned the paths for the template files are: %Userprofile%Templates, %Allusersprofile%Templates or for the whole system %Systemroot%ShellNew. In this example we haven’t specified any template name because we don’t want to use any.



              [HKEY_CLASSES_ROOTxyz]
              @="XYZ test file"


              This will be the name of the file type both for the context menu and the newly created files. As far as I know leaving this value blank does not work.



              Icon:



              The icon is added once Windows have associated a software with the file type.






              share|improve this answer















              It seems that the other solutions here are outdated. At least none of these worked for me in Windows 10 v. 1709 Build 16299.192 (Edit: still works in version 1809). I did some testing in a VM and this is what works in Windows 10 1709, as of 2018.01.12:



              Add the registry file:



              Create a new registry file file with the following content:



              Windows Registry Editor Version 5.00

              ; new file type
              [HKEY_CLASSES_ROOT.xyz]
              @="xyz"

              ; template
              [HKEY_CLASSES_ROOT.xyzShellNew]
              "FileName"=""

              ; file type name
              [HKEY_CLASSES_ROOTxyz]
              @="XYZ test file"


              Replace xyz with the extension you would like to add. And replace XYZ test file with the name of the file extension (e.g a .scss file would be "syntactically awesome style sheet file”). If you want to use a template file see the explanation below.



              It might be necessary to restart Windows Explorer after you have added the registry file. You can restart explorer.exe by typing the following in CMD:



              taskkill /f /im explorer.exe & start explorer.exe


              enter image description here



              enter image description here





              Explanation of the code:



              [HKEY_CLASSES_ROOT.xyz]
              @="xyz"


              Will create a new file type in the registry.



              [HKEY_CLASSES_ROOT.xyzShellNew]
              "FileName"=""


              This will enable you to use a template for all new files of this file format. We could for example write "template.xyz" and make a new file called “template.xyz” and use it a s a template. So each time you make a new file it will be populated with pre-made content. As Eduardo Molteni mentioned the paths for the template files are: %Userprofile%Templates, %Allusersprofile%Templates or for the whole system %Systemroot%ShellNew. In this example we haven’t specified any template name because we don’t want to use any.



              [HKEY_CLASSES_ROOTxyz]
              @="XYZ test file"


              This will be the name of the file type both for the context menu and the newly created files. As far as I know leaving this value blank does not work.



              Icon:



              The icon is added once Windows have associated a software with the file type.







              share|improve this answer














              share|improve this answer



              share|improve this answer








              edited Jan 17 at 20:10

























              answered Jan 12 '18 at 15:32









              AreteArete

              50011229




              50011229








              • 1





                Great answer, thanks. Please note in Windows 10, %userprofile%Templates has moved to %appdata%MicrosoftWindowsTemplates and %Allusersprofile%Templates has moved to %programdata%MicrosoftWindowsTemplates

                – TheImirOfGroofunkistan
                May 30 '18 at 16:18
















              • 1





                Great answer, thanks. Please note in Windows 10, %userprofile%Templates has moved to %appdata%MicrosoftWindowsTemplates and %Allusersprofile%Templates has moved to %programdata%MicrosoftWindowsTemplates

                – TheImirOfGroofunkistan
                May 30 '18 at 16:18










              1




              1





              Great answer, thanks. Please note in Windows 10, %userprofile%Templates has moved to %appdata%MicrosoftWindowsTemplates and %Allusersprofile%Templates has moved to %programdata%MicrosoftWindowsTemplates

              – TheImirOfGroofunkistan
              May 30 '18 at 16:18







              Great answer, thanks. Please note in Windows 10, %userprofile%Templates has moved to %appdata%MicrosoftWindowsTemplates and %Allusersprofile%Templates has moved to %programdata%MicrosoftWindowsTemplates

              – TheImirOfGroofunkistan
              May 30 '18 at 16:18













              2














              Create a plain text file and add the following line to it:





              Windows Registry Editor Version 5.00

              [HKEY_CLASSES_ROOT.txtShellNew]
              "NullFile"=""




              Save the file and rename it's extention to a .reg file. E.g. "myNewItem.reg".
              Be sure that you renamed the extention and not only the file name like (myNewItem.reg.txt)



              Double click the file and it will update your registry.



              The next step, and that is very important, restart your computer directly. So DON'T try to open the content menu to see if it's already works! First restart you computer.



              If you open the content menu to see if your amazing new item is already listed, the registry will be restored ...



              Also try this program: http://sourceforge.net/projects/shellnewhandler/






              share|improve this answer


























              • whether or not I restart immediately I can't get this to work in Windows 8.1. No idea why.

                – Gabriel Staples
                Oct 30 '16 at 23:19
















              2














              Create a plain text file and add the following line to it:





              Windows Registry Editor Version 5.00

              [HKEY_CLASSES_ROOT.txtShellNew]
              "NullFile"=""




              Save the file and rename it's extention to a .reg file. E.g. "myNewItem.reg".
              Be sure that you renamed the extention and not only the file name like (myNewItem.reg.txt)



              Double click the file and it will update your registry.



              The next step, and that is very important, restart your computer directly. So DON'T try to open the content menu to see if it's already works! First restart you computer.



              If you open the content menu to see if your amazing new item is already listed, the registry will be restored ...



              Also try this program: http://sourceforge.net/projects/shellnewhandler/






              share|improve this answer


























              • whether or not I restart immediately I can't get this to work in Windows 8.1. No idea why.

                – Gabriel Staples
                Oct 30 '16 at 23:19














              2












              2








              2







              Create a plain text file and add the following line to it:





              Windows Registry Editor Version 5.00

              [HKEY_CLASSES_ROOT.txtShellNew]
              "NullFile"=""




              Save the file and rename it's extention to a .reg file. E.g. "myNewItem.reg".
              Be sure that you renamed the extention and not only the file name like (myNewItem.reg.txt)



              Double click the file and it will update your registry.



              The next step, and that is very important, restart your computer directly. So DON'T try to open the content menu to see if it's already works! First restart you computer.



              If you open the content menu to see if your amazing new item is already listed, the registry will be restored ...



              Also try this program: http://sourceforge.net/projects/shellnewhandler/






              share|improve this answer















              Create a plain text file and add the following line to it:





              Windows Registry Editor Version 5.00

              [HKEY_CLASSES_ROOT.txtShellNew]
              "NullFile"=""




              Save the file and rename it's extention to a .reg file. E.g. "myNewItem.reg".
              Be sure that you renamed the extention and not only the file name like (myNewItem.reg.txt)



              Double click the file and it will update your registry.



              The next step, and that is very important, restart your computer directly. So DON'T try to open the content menu to see if it's already works! First restart you computer.



              If you open the content menu to see if your amazing new item is already listed, the registry will be restored ...



              Also try this program: http://sourceforge.net/projects/shellnewhandler/







              share|improve this answer














              share|improve this answer



              share|improve this answer








              edited Dec 8 '11 at 13:33









              Sathyajith Bhat

              52.8k29156252




              52.8k29156252










              answered Nov 20 '11 at 17:14









              BnutoswaBnutoswa

              211




              211













              • whether or not I restart immediately I can't get this to work in Windows 8.1. No idea why.

                – Gabriel Staples
                Oct 30 '16 at 23:19



















              • whether or not I restart immediately I can't get this to work in Windows 8.1. No idea why.

                – Gabriel Staples
                Oct 30 '16 at 23:19

















              whether or not I restart immediately I can't get this to work in Windows 8.1. No idea why.

              – Gabriel Staples
              Oct 30 '16 at 23:19





              whether or not I restart immediately I can't get this to work in Windows 8.1. No idea why.

              – Gabriel Staples
              Oct 30 '16 at 23:19











              1














              The registry key:



              HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerDiscardablePostSetupShellNew


              cannot be changed to accomplish what is displayed or not displayed on the "New" context menu. If you change that value, it will be overridden by Explorer the next time you right click and bring up the "New" context menu. Try it and you will see what I mean.






              share|improve this answer






























                1














                The registry key:



                HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerDiscardablePostSetupShellNew


                cannot be changed to accomplish what is displayed or not displayed on the "New" context menu. If you change that value, it will be overridden by Explorer the next time you right click and bring up the "New" context menu. Try it and you will see what I mean.






                share|improve this answer




























                  1












                  1








                  1







                  The registry key:



                  HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerDiscardablePostSetupShellNew


                  cannot be changed to accomplish what is displayed or not displayed on the "New" context menu. If you change that value, it will be overridden by Explorer the next time you right click and bring up the "New" context menu. Try it and you will see what I mean.






                  share|improve this answer















                  The registry key:



                  HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerDiscardablePostSetupShellNew


                  cannot be changed to accomplish what is displayed or not displayed on the "New" context menu. If you change that value, it will be overridden by Explorer the next time you right click and bring up the "New" context menu. Try it and you will see what I mean.







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Jul 21 '11 at 8:52









                  3498DB

                  15.8k114762




                  15.8k114762










                  answered Apr 14 '11 at 2:53









                  WoodyElfWoodyElf

                  111




                  111

















                      protected by Community Dec 8 '11 at 13:32



                      Thank you for your interest in this question.
                      Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).



                      Would you like to answer one of these unanswered questions instead?



                      Popular posts from this blog

                      Mouse cursor on multiple screens with different PPI

                      Agildo Ribeiro

                      Sometime when accessing a menu: “Ubuntu 16.04 has experienced an internal error”