1. 首先你的桌面上創建一個txt文件,在文件裏添加下面的內容:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\Shell\使用NotePad++編輯]
[HKEY_CLASSES_ROOT\*\Shell\使用NotePad++編輯\Command]
@="C:\\Program Files (x86)\\Notepad++\\notepad++.exe %1"
注意:
a) 上面的C:\\Program Files (x86)\\Notepad++\\notepad++.exe是notepad++.exe所在路徑。
b) 路徑分隔符是\\,不能是\或/。
2.把txt文本改爲reg後綴的文件,雙擊reg文件就能添加到註冊表裏。在任意一個文件上鼠標
右鍵中就會看到“使用NotePad++編輯”。