当前位置: 移动技术网 > 科技>操作系统>注册表 > 通过注册表为各类文本编辑器添加到右键

通过注册表为各类文本编辑器添加到右键

2018年03月02日  | 移动技术网科技  | 我要评论

各类文本编辑器添加到右键

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依然是没有问题的。

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网