如果你想实现在文件上点击右键,选择右键快捷方式里一个软件来打开它,但是右键菜单里没有这个软件的快捷方式(比如免安装版的UltraEdit),这时候怎么办呢?
![抓狂](https://static-blog.csdn.net/xheditor/xheditor_emot/default/crazy.gif)
请看下文
下面以添加
UltraEdit到右键菜单为例,给大家秀一下在win10下添加自定义菜单的方法,效果如下图
1、“windows键+R”打开运行窗口,输入
regedit,然后点击“确定”打开注册表(有的家庭版的系统没有注册表权限,先升级系统吧
)
![吐舌头](https://static-blog.csdn.net/xheditor/xheditor_emot/default/tongue.gif)
![](https://i-blog.csdnimg.cn/blog_migrate/70954ef2dc850be8ec383128366e4125.png)
2、依次展开\HKEY_CLASSES_ROOT\*\shell,在shell上点击右键->新建->项,命名为
UltraEdit(随便命名),在UltraEdit上点击右键->新建->项,命名为command(必须这个名);
![](https://i-blog.csdnimg.cn/blog_migrate/69c823e8355df4661bf603695f576cfd.png)
操作完后如
下图
![](https://i-blog.csdnimg.cn/blog_migrate/51b4528aab049194b36eea8473ecd36c.png)
3、左键点击
UltraEdit,双击右边的“默认”,在数值数据中填入UltraEdit;
![](https://i-blog.csdnimg.cn/blog_migrate/f06391cda24c9a09b6ce7bcf4f210f27.png)
添加完成后
![](https://i-blog.csdnimg.cn/blog_migrate/0a909e4a2e06a4372fb1d3a776bd5d1a.png)
4、
在
UltraEdit
上点击右键
->新建->字符串值,命名为icon(必须这个名),双击icon,在数值数据中填入你应用程序的路径(用于获取右键菜单中的图标)
![](https://i-blog.csdnimg.cn/blog_migrate/a07bca8684470ab2e63378ac82b7283e.png)
![](https://i-blog.csdnimg.cn/blog_migrate/ec076d827bc9ca56bbb78d99f17c033f.png)
![](https://i-blog.csdnimg.cn/blog_migrate/92bb577c8d156aba13cac79ac28575d3.png)
5、左键点击command,双击右边的“默认”,在数值数据中填入C:\ultraedit\uedit32.exe %1(路径+空格+百分号+1)
![](https://i-blog.csdnimg.cn/blog_migrate/3ffc3e22b71598f8913eb6c5c4382de0.png)