Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is there any software or registry hack to add a specific item to the context menu for specific executables or associated file types to those executables?

For example, right clicking a.ext would have an option to open it in notepad. That in itself isn't that useful, since opening the file alone could do that. But it'd be good if more options were available in the context menu, like opening b.ext c.ext.

share|improve this question
    
You could make use of the SendTo menu support.microsoft.com/kb/310270 –  Sathya Sep 27 '10 at 15:32
    
do you think that'd work for opening a file in an/the application? I am not trying to move or copy anything. –  barlop Sep 27 '10 at 16:11
    
note- cawas suggested there may be a way to associate the context menu or an item in it, with ..perhaps not an icon or application, but with a file extension/type. since 7-zip has the open archive option in the context menu when right clicking a zip but not for say a txt. –  barlop Sep 27 '10 at 16:13

1 Answer 1

You can add custom context menu entry to the filetype based on its extension. Here is an example for *.exe :

  • Open Regedit
  • Navigate to HKEY_CLASSES_ROOT\.exe
  • Make sure that the key called (Default) exists and its value is exefile
  • Navigate to HKEY_CLASSES_ROOT\exefile\shell
  • Create key HKEY_CLASSES_ROOT\exefile\shell\YourCustomCommand
  • Create key HKEY_CLASSES_ROOT\exefile\shell\YourCustomCommand\command
  • Add new string value named (Default) and set it to "%SystemRoot%\system32\NOTEPAD.EXE %1"
  • Close Regedit

Now all executables (*.exe) should have new context menu item called YourCustomCommand which will open the file in notepad.

share|improve this answer
    
+1 looks good.. i'll give it a try when I can. –  barlop Nov 14 at 0:02

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.