1、创建文件:notepad.reg
2、添加内容
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\NotePad++]
@="Notepad++"
"Icon"="D:\\Program Files (x86)\\Notepad++\\notepad++.exe, 0"
[HKEY_CLASSES_ROOT\*\shell\NotePad++\Command]
@="D:\\Program Files (x86)\\Notepad++\\notepad++.exe %1"
3、双击执行注册