给windows添加右键菜单,以notepad++为例,新建 notepad++.reg
, 黏贴如下代码。双击运行即可,注意修改 nodepad++
为对应的名称。
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\NotePad++]
@="Notepad++"
"Icon"="D:\\Program Files\\npp.8.1.4.portable.x64\\notepad++.exe,0"
[HKEY_CLASSES_ROOT\*\shell\NotePad++\Command]
@="D:\\Program Files\\npp.8.1.4.portable.x64\\notepad++.exe %1"