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"