60

When I right click on a jpg file in Windows Explorer (Windows 7), I see that there is an "Edit" menu item. If I click this item, it opens the image in MSPaint. Blah. I have Paint.NET installed, and I'd like to change the "Edit" action to open the image in Paint.NET.

How can I go about doing this?

Factor Mystic
  • 12,647
  • 7
  • 47
  • 53
slolife
  • 1,243
  • 4
  • 19
  • 21

4 Answers4

57

I found this little program while surfing the web: Default Programs Editor. I think it is able to do what you want.

djeidot
  • 1,478
  • 1
  • 13
  • 14
34

The registry key you want is:

  • HKEY_CLASSES_ROOT\Paint.Picture\shell\edit\command for .bmp files,
  • HKEY_CLASSES_ROOT\SystemFileAssociations\image\shell\edit\command for .jpg files.

Change it to "C:\Path\to\your\image\program.exe" "%1" including the " " and it should work.

Otiel
  • 1,580
  • 2
  • 14
  • 30
  • And for *.ico* files, the registry key to modify/create is `HKEY_CLASSES_ROOT\icofile\shell\edit\command` – Otiel Apr 24 '15 at 09:34
  • 3
    Modifying `HKCR\SystemFileAssociations\image` also did the trick for `.png` files on my system. Apparently this key overrides any commands defined in `pngfile`; presumably it's the same for `.jpg` files and `jpegfile`. – Lexikos Feb 28 '16 at 02:27
  • 2
    To use the approach above you would need to know the name that Windows has for the file association (i.e. Paint.Picture). To find that part, run "assoc .bmp" on the command line. If you're looking to change the association on an extension other than ".bmp", you'd run "assoc .thatotherextension". – LinuxDisciple Sep 15 '16 at 19:24
6

Hey just thought i would chuck this in since this page proved useful. i have been trying to change the EDIT function to point to Notepad ++ rather than Notepad for .txt files for a while now. Its under

HKEY_CLASSES_ROOT\SystemFileAssociations\text\shell\edit\command registry key, just point it to your desired text editor.

kudos to CGA

Wasif
  • 7,984
  • 2
  • 19
  • 32
grayfox
  • 61
  • 1
  • 1
  • I have the same problem with the notepad/notepad++ but if I go to regedit and search for the path you provided - there is not text\shell\edit etc. – static Jul 29 '13 at 16:04
  • 1
    for me it was at HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SystemFileAssociations – Omid Aminiva Feb 02 '16 at 15:44
  • This was exactly what I was looking for, so I'll happily offset pnuts -2 rep with a +10 for you :) – Bill K Jan 04 '18 at 18:38
1

Right click a jpg file, choose properties, on the general tab click change in the field "Opens with". Browse to the Paint.NET .exe file and select it. Click open and then ok. Now your jpg files should automatically open with Paint.NET.

CGA
  • 3,809
  • 21
  • 15
  • 5
    This changes the "Open" action, not the "Edit" action, if I'm not mistaken. – Snark Nov 11 '09 at 09:11
  • Yes it does but it also should add Paint.NET to the "open with" context menu entry which essentially gives the OP the alternatives he wants. – CGA Nov 11 '09 at 12:20
  • 4
    While good information, this is not what I am looking for. I like what Open does, and don't want to change it. I really am looking to change the Edit context menu. – slolife Nov 11 '09 at 16:44
  • 1
    I think I found the registry key which controls this context menu: "HKEY_CLASSES_ROOT\SystemFileAssociations\image\shell\edit\command" Change the value in the default string to your Paint.NET path. In my case I changed it to Xnview like this: "C:\Program Files (x86)\XnView\xnview.exe" "%1" Like always when editing the registry, be careful, taking a system restore point before any changes is a good idea. – CGA Nov 12 '09 at 15:05