6

Let's start off by saying I am on Windows 10 and that i've seen many posts about this subject but none seemed to work for me. Looking at this post has solved some issues but I still need some assistance. Add menu item to windows context menu only for specific filetype

What I want to do is add an a specific item to only images (I will start with .jpg) that will say "Upload Image". Here is what I have so far:

  • I searched for the default value of HKEY_CLASSES_ROOT\.jpg which is jpegfile.
  • I added this key HKEY_CURRENT_USER\SOFTWARE\Classes\jpegfile\shell\ImagePanel\command
  • I set command default value to my application directory.

After doing all that, the only thing that changed is the context menu shows my application under "Open with" and doesn't actually have its own spot on the context menu.

Am I doing something wrong here?

2
  • Not entirely sure, but you might simply be missing a name for the entry, which has to be stored as default-value of HKEY_CURRENT_USER\SOFTWARE\Classes\jpegfile\shell\ImagePanel in your case. However, it also didn't work for me – though I tried it with PDF files, where apparently multiple programs vie for defining the (Default) value of `...Classes\.pdf". Commented Nov 25, 2016 at 13:13
  • Just for reference, I also tried it with other file types – still fails. Commented Nov 25, 2016 at 13:26

1 Answer 1

7

Had exactly the same problem, something must have changed in Windows 10. I finally managed to get it work, here are the keys that worked for me:

HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SystemFileAssociations\.jpg\Shell\

or this one for all the image extensions:

HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SystemFileAssociations\image\Shell\

for example this is what I used (the first entry is for loading the icon, just the second one is needed to actually create the new menu item):

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SystemFileAssociations\image\shell\Photoshop]
"Icon"="C:\\Program Files\\Adobe\\Adobe Photoshop CS6 (64 Bit)\\Photoshop.exe,0"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SystemFileAssociations\image\shell\Photoshop\Command]
@="\"C:\\Program Files\\Adobe\\Adobe Photoshop CS6 (64 Bit)\\Photoshop.exe\" \"%1\""
Sign up to request clarification or add additional context in comments.

1 Comment

Might be obvious to some, but it seems you need to use the full path to the executable rather than relying on PATH. For example "python.exe" did not work for me and I had to point the Command to the full path for python.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.