Follow these steps:
Open regedit (as administrator).
Locate key
HKEY_CLASSES_ROOT\*\shell
. In case you want to add the context menu for a specific extension only, use e.g.HKEY_CLASSES_ROOT\.xml\shell
forxml
. If theshell
key doesn't exist, create it (right-click on the parent key and selectNew -> Key
).Right-click on the
shell
key, and selectNew -> Key
. Enter the name of the command displayed in the context menu, e.g.Check Bug Report
.Right-click on the
Check Bug Report
key and selectNew -> Key
. Enter textcommand
(in lowercase).Click on the
command
key and then double-click on the (Default) key in the right pane to edit the string value. Enter the command to be executed. Placeholder for the argument is%1
. ForChkBugReport_ver.jar
, you can usejava -jar "C:\Path\To\ChkBugReport_ver.jar" "%1"
See also this tutorial.
(Works with my Windows 7)