通过注册表将上下文菜单项添加到特定扩展名 [英] Adding context menu item to specific extension via registry

查看:47
本文介绍了通过注册表将上下文菜单项添加到特定扩展名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

让我们开始说我在Windows 10上,并且我已经看到很多关于此主题的帖子,但似乎没有一个适合我.查看这篇文章已经解决了一些问题,但我仍然需要一些帮助.将菜单项添加到Windows上下文菜单中仅适用于特定文件类型

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

我想做的是将一个特定项目添加到仅会显示上传图像"的图像(我将以.jpg开头).这是我到目前为止的内容:

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:

  • 我搜索了 HKEY_CLASSES_ROOT \ .jpg 的默认值jpegfile.
  • 我添加了此键 HKEY_CURRENT_USER \ SOFTWARE \ Classes \ jpegfile \ shell \ ImagePanel \ command
  • 我将命令默认值设置为我的应用程序目录.
  • 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?

推荐答案

出现完全相同的问题,在Windows 10中必须进行了某些更改.我终于设法使它起作用,这是对我有用的钥匙:

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 \

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

或针对所有图片扩展名的该图片:

or this one for all the image extensions:

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

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\""

这篇关于通过注册表将上下文菜单项添加到特定扩展名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆