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

-2

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.

barlop

Posted 2010-09-27T12:22:54.790

Reputation: 18 677

You could make use of the SendTo menu http://support.microsoft.com/kb/310270

– Sathyajith Bhat – 2010-09-27T15:32:58.433

do you think that'd work for opening a file in an/the application? I am not trying to move or copy anything. – barlop – 2010-09-27T16:11:35.203

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 – 2010-09-27T16:13:23.440

Answers

2

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.

Art Gertner

Posted 2010-09-27T12:22:54.790

Reputation: 6 417