Win + R
组合键打开命令行regedit
打开注册表HKEY_CLASSES_ROOT\*\shell
目录,新建 name
项name
项目录,新建 command
项command
项目录,新建一个 字符串值
*.exe
路径到 command
默认值 字符串值
name
层新建一个 icon 项,键值添加图标路径便可给右键菜单添加图标
eg.
D:\20170901工做文档\notepad.6.9.2\notepad++.exe %1
shell
Note:%1
前面是一个空格ui
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shell
文件右键菜单命令行
HKEY_CLASSES_ROOT\Directory\Background\shell
桌面右键菜单code
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
项;
便可。it
Note:若是后续想恢复该项,建议备份注册表。io
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"