有时会用notepad++绿色版免安装,但无法右键用notepad打开文件,可以在桌面新建.txt文件,将下面内容复制到文件中(注意要换成自己的程序路径):
1 Windows Registry Editor Version 5.00 2 [HKEY_CLASSES_ROOT\*\shell\NotePad++] 3 @="notepad++" 4 "Icon"="F:\SoftWare\Notepad++v771\Notepad++.7.7.1.x64\notepad++.exe" 5 6 [HKEY_CLASSES_ROOT\*\shell\NotePad++\Command] 7 @="\"F:\SoftWare\Notepad++v771\Notepad++.7.7.1.x64\notepad++.exe" \"%1\""
再把后缀名改成 .reg 双击运行即可