Windows – How to set the program that “Edit” in the context menu opens

context menugimpwindows-vista

If I right click a JPG or PNG file, the "Edit" option opens MS Paint, whereas I would like it to open GIMP. I found the ShellMenuView and ShellExView programs, but I can't find the relevant entries.

In fact, ShellMenuView has an entry for .png that says Edit with GIMP and appears to call the correct executable, but this doesn't appear in the menu (and I don't really want it clogged up with two Edit options).

I have also looked in the registry and see these keys:

  • HKEY_CLASSES_ROOT\*\OpenWithList\MSPaint.exe\ (which has only one entry, (Default) with blank Data)
  • HKEY_CLASSES_ROOT\.png\ with folders OpenWithPrigId and PersistentHandler.
  • HKEY_CLASSES_ROOT\pngfile\shell\ with folders crush (PNGcrush which I added myself a while back) and open.

I saw this question but that only applies to Windows XP and doesn't work in Vista. The "File types" tab is not there, and "Set Associations" in the Control Panel only sets the "Open with" menu.

So how and where can I change what the "Edit" option in the context menu does?

Best Answer

Easier answer: Use NirSoft's FileTypes Manager like so:

In the upper pane, find and select the .JPG Extension.
Create a "New Action" (Actions/New Action or lower pane/right-click/New Action).
Set the Action Name and Menu Caption to "Edit" and browse to the .EXE that should edit the file.
Click OK to save your changes.
Presto, now Windows does what you want.
Apparently, this new setting just overrides the existing Edit command.

Related Question