各类文本编辑器添加到右键
ex:notepad++、sublime text、editplus等。
新建一个***.reg的文件,即注册表文件,然后输入:
regedit4</p> <p>[hkey_classes_root\*\shell\使用notepad++编辑]
[hkey_classes_root\*\shell\使用notepad++编辑\command]
@="d:\\program files\\notepad++\\notepad++.exe \"%1\""
或
windows registry editor version 5.00</p> <p>[hkey_classes_root\*\shell\使用notepad++编辑]
[hkey_classes_root\*\shell\使用notepad++编辑\command]
@="d:\\program files\\notepad++\\notepad++.exe \"%1\""
//最后一行是编辑器的路径,双斜杠是转义,不用动。
关于上面一段文字的解释:
windows 95/98/me/nt 4.0等的reg文件开头第一行规定必须是“regedit4”。而windows 2000/xp/vista/7则是“windows registry editor version 5.00”,用以区分所使用的操作系统。
ps:即使你用的是win7,使用regedit4依然是没有问题的。
发表评论