Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

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?

My System SpecsSystem Spec
05 Jun 2011   #2

Windows 7 Ultimate


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
FileName containing a valid path to c:\windows ShellNew\example.bat
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

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

Thread Tools

Our Sites

Site Links

About Us

Find 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 05:20 PM.
Twitter Facebook Google+

Windows 7 Forums

Seven Forums Android App Seven Forums IOS App