In this tutorial, we'll tell you how to add your own customized entries in context menus and how to remove unwanted entries from context menu:
A. Type regedit in RUN dialog box and press Enter. Now go to:
HKEY_CLASSES_ROOT\* (for adding an option in All files context menu)
HKEY_CLASSES_ROOT\Directory (for adding an option in folders context menu only)
HKEY_CLASSES_ROOT\Drive (for adding an option in Drives context menu only)
HKEY_CLASSES_ROOT\Unknown (for adding an option in unknown files context menu)
B. Now under the above mentioned keys, you'll find "Shell" and "Shellex" keys. Both keys contain various entries, which are displayed when you right-click on a file, folder or drive. We'll use "Shell" key in this tutorial:
1. Right-click on the "Shell" key and select "New -> Key".
2. Give it any name. Suppose we gave it name "vishal".
3. Now in right-side pane, double-click on "Default" String value and set its value to the Label which you want to display in context menu. Like if you want to add "Winamp" in context menu, then you can give it name "Open with Winamp" or similar.
4. Now create another key under this newly created key "vishal" with the name "command" and in right-side pane set value of "Default" to the path of application. For ex, for winamp you can set its value "%programfiles%\Winamp\winamp.exe".
That's it. Now you'll get in the context menu.

A few Important points:
1. If you add just the path in "Command", then it'll open the application but if you append "%1" (without quotes) in the path, then it'll open the selected file with the application. So in case of setting the value to "%programfiles%\Winamp\winamp.exe", set it "%programfiles%\Winamp\winamp.exe %1" and now it'll open the file in winamp.
2. Step 3 can be omitted and you can assign the application name directly to the new key. i.e., either set "Default" String value to the name of application or directly set the key name to application name. e.g. instead of setting the key name to "vishal", you can directly set its name to "Winamp", in this case leave the "Default" as it is.
3. With the help of this tutorial, you can add application shortcuts in any filetype context menu. e.g., if you like to play with "*.txt" file context menu, then go to:
HKEY_CLASSES_ROOT\txtfile
so you can follow this tutorial for any filetype.
C. Same methods apply for removing entries from context menu. Just go to "Shell" or "Shellex\ContextMenuHandlers" and delete the unwanted key under these keys.
This article was posted by VG in following section: Windows 7, Windows Vista, Windows XP.
If you enjoyed this article, you can subscribe to our RSS feed or free newsletter to get all new articles directly in your Inbox. Also check out our most popular articles and archive to read other interesting articles. If you have some news or tip to share, please send us.
Raf
Thanks a lot, VG you're awesome, looks great on my PC.
ajay M
@ ed jackman
To fix your problem regarding 'Clean Recycle bin and Privacy (c)'-
a) Open Iobit's ASC
b) Click on Options
c) In the ensuing window you should be seeing the 'General Settings' tab. Under 'Context Menu', there is an entry for 'Sweep Privacy'. This would be checked initially. Un-check it, and click on 'Apply'. Again put a check against 'Sweep Privacy' and click 'OK'.
REgards..
Ajay
TheAslan
Hiya Vishal!
I have a small problem right now, i'm not sure what caused this but i have 2 "open" items in contextmenu, it's located in "HKEY_CLASSES_ROOT\Folder\shell"
I'm not sure why it adds 2 open items in my contextmenu? Can you provide me a .reg file what solves this? And is it possible to open files and folders without this open text in contextmenus?
VG
^^ Why not delete the extra one?
R-D
I am trying in Windows 7 to add an entry to MP3 files right-click context menu to start a program to test the files:
I went to HKEY_CLASSES_ROOT\mp3file and there is no shell only shellex.
I added "shell" key, added a new key called "test" with default changed to "Test with mp3utility"
Added new key called "command" and set the default entry to: "%programfiles(x86)%\mp3utility\mp3utility.exe %1
I rebooted after making the changes, but nothing new shows up on the right-click menu for MP3 files.
Do you have any suggestions? does this need to be under shellex instead?
Thanks.
VG
^^ Add those keys under ShellEx.
R-D
Hmm, still doesnt show when I right click an mp3 file ... any other ideas?
VG
^^ You can also try with "HKEY_CLASSES_ROOT\.mp3" key.