How do I add a item to the "New" context menu?


  1. Posts : 29
    Win7 Home Premium 64x
       #1

    How do I add a item to the "New" context menu?


    Can one use this to add entirely new file extensions in the registry?
    For instance, there's a game I play that uses a scripting file (in reality nothing more than a plain text, but it's annoying to always have to go save-->all files--->.sqf)

    I want to make it so that I can just spawn a new .sqf from the New menu, is this possible? What I have tried doing:
    HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ ---> (New Key --> .sqf) ---> (New Key ---> shellnew) --->(String "NullFile")

    But nothing is coming up. Is there a way to do this?
    Last edited by Brink; 16 Dec 2010 at 01:00. Reason: moved
      My Computer


  2. Posts : 3
    Windows 7 Ultimate
       #2

    Goto HKEY_CLASSES_ROOT

    Select relevant file extension or create one... ie .bat

    Right click file extension and select New Key and name it ShellNew

    In that key right click default and create a new string value called
    either...
    FileName containing a valid path to c:\windows ShellNew\example.bat
    or
    NullFile leaving it's value blank.

    The FileName method allows you to use a template file which may contain
    in the case of a batch file @echo off as the first line.

    The NulFile method creates an empty file.

    Hope this helps.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 11:57.
Find Us