Windows 7 Forums


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

16 Dec 2010   #1

Win7 Home Premium 64x
 
 
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 AM.. Reason: moved
My System SpecsSystem Spec

05 Jun 2011   #2

Windows 7 Ultimate
 
 

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 System SpecsSystem Spec
Reply

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



Thread Tools



Similar help and support threads for: How do I add a item to the "New" context menu?
Thread Forum
Solved How to add a "Copy Shortcut text" context menu item Customization
Solved Getting rid of "extract..." context menu item in windows 7 Software
Context menu item "Format" missing on my DVD RW drive Hardware & Devices
File and Folder - Add "Hide" and "Unhide" to Context Menu Tutorials
Solved Remove "Restore previous versions" and "Share with" from context menu Customization


All times are GMT -5. The time now is 05:52 PM.


Seven Forums Android App Seven Forums IOS App Follow us on Facebook

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
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32