Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I have been wanting for some time to add to the "New" portion of the generic context menu for some time. I am calling the context menu you get when you right click on any folder (including the desktop) but not on any file. I have figured out how to add/delete entries to most other context menus, but I cannot find the correct registry entry for this "generic" menu. I may have found where it is, but all of the entries are Binary and I do not know what they mean. The location I am speaking of is listed below:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Discardable\PostSetup\ShellNew
Thank you in advance for your help.

To add a new item to the 'New' such as a new type of filetype you must go to that extension in the Registry and add a ShellNew subkey.
example [I'll use the .abc extension for this purpose, you may not even have an .abc extension anyway]
Go to
Hkey_Classes_Root\.abc
then add a new key to it named ShellNew, then create a new string value named NullFile, close Registry and check the 'New" to see if it works. If you are not sure check out the Hkey_Classes_Root\.txt key to see how it's done.
If you wish to remove any items from that context menu just track down the extension and delete the ShellNew subkey.
Note, the 'New' folder and shortcut are not in the Registry but are embedded in Shell32.dll so you cannot add to or remove from that section

Ronnie,
Thank you for the suggestion, but that was not what I was looking for. What I really want to do is be able to right click to get to the "generic" context menu as I previously described and run an application from it. I want to run gvim.exe (graphical version of VI) with the current directory being the present directory. I have been able to do it if there are other directories in the folder, by putting a context menu entry into Hkey_Classes_Root\(Folder and Directory)\shell. However, this requires another directory to be there to right click on. I would rather do it from the "generic" context window which according to you, sounds like it is locked in Shell32.dll. There is a program called Mmm (http://www.hace.us-inc.com/mmm.shtml) who's full version sounds like it can do what I want). Any other suggestions would be greatly appreciated. Thank you.

![]() |
auto pharsing
|
Altair = Bill's first wow...
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |