How do I add items to Windows Explorer right-click context menu called New?
3 Answers
On Windows XP it appears they are registry entries. On my machine it's all listed under
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Discardable\PostSetup\ShellNew
-
That key also exists on Windows7, so I'm guessing it'll be good on Vista too.– KdgDevNov 6, 2009 at 0:37
Sample using ".sql" files.
- Start -> Run
- %userprofile%\Templates
- Copy NewProc.sql
- Edit the registry
[HKEY_CLASSES_ROOT.sql\ShellNew] Value Name = FileName Value Data = NewProc.sql
Seems kinda kludgy and to only support one new item per file type, so I'm on the lookout for a better answer.
I don't know if this anyone still needs this but you can add stuff to the new menu like this:
start cmd as admin
type the command
reg ADD HKEY_CLASSES_ROOT\<extension name>\ShellNew
and than use
reg ADD HKEY_CLASSES_ROOT\<extension name>\ShellNew /v NullFile /t REG_SZ /d 1
Note that the must have a ". in front of it e.g. .txt or .bat etc.
Hope this helps. If it doesn't help, you can also look here:
https://www.makeuseof.com/windows-10-create-new-add-items/