如何在注册表中添加右键菜单?

如何给注册表添加右键菜单

  1. Win + R 组合键打开命令行
  2. 输入 regedit 打开注册表
  3. 找到 HKEY_CLASSES_ROOT\*\shell 目录,新建 name
  4. 来到 name 项目录,新建 command
  5. 来到 command 项目录,新建一个 字符串值
  6. 复制应用程序 *.exe 路径到 command 默认值 字符串值

name 层新建一个 icon 项,键值添加图标路径即可给右键菜单添加图标
eg.
D:\20170901工作文档\notepad.6.9.2\notepad++.exe %1

Note:%1 前面是一个空格

如何在注册表中添加右键菜单

HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shell 文件右键菜单

HKEY_CLASSES_ROOT\Directory\Background\shell 桌面右键菜单

HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\MenuExt

HKEY_CLASSES_ROOT\Folder\shell

如何删除右键菜单中图形属性和图形选项

1.找到注册表 HKEY_CLASSES_ROOT\Directory\Background\shellex\ContextMenuHandlers 项。
删除
HKEY_CLASSES_ROOT\Directory\Background\shellex\ContextMenuHandlers\igfxcui 项;
HKEY_CLASSES_ROOT\Directory\Background\shellex\ContextMenuHandlers\igfxDTCM 项;
即可。

Note:如果后续想恢复该项,建议备份注册表。

如何在右键菜单中添加注册DLL选项

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\dllfile\shell]

[HKEY_CLASSES_ROOT\dllfile\shell\register]
@="注册DLL文件"

[HKEY_CLASSES_ROOT\dllfile\shell\register\command]
@="regsvr32 %1"

[HKEY_CLASSES_ROOT\dllfile\shell\Unregister]
@="卸载DLL文件"

[HKEY_CLASSES_ROOT\dllfile\shell\Unregister\command]
@="regsvr32 /u %1"

一个在注册表中添加右键菜单的实例

//xxx.reg
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\notepad]
@="notepad open"

[HKEY_CLASSES_ROOT\*\shell\notepad\command]
@="D:\\20170901工作文档\\notepad.6.9.2\\notepad++.exe %1"

转载于:https://www.cnblogs.com/cheungxiongwei/p/7541447.html

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值