新建一个.bat文件将下面代码复制进去。然后根据自己的情况更改一下路径。
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\NotePad++]
@="用&Notepad++打开"
"Icon"="C:\\d\\soft\\npp.6.8.7.bin\\Notepad++.exe"
[HKEY_CLASSES_ROOT\*\shell\NotePad++\Command]
@="C:\\d\\soft\\npp.6.8.7.bin\\Notepad++.exe \"%1\""