Windows7下TXT类型文件的右键菜单打开方式出现两个记事本的解决
作者:佚名 来源:xp下载站 时间:2012-10-20 10:43
将下列代码保存到一个空白记事本文件中,保存成REG类型的文件,如“repair.reg”:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\SystemFileAssociations\text\shell\open\command]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,4e,00,4f,00,\
54,00,45,00,50,00,41,00,44,00,2e,00,45,00,58,00,45,00,20,00,25,00,31,00,00,\
00
[HKEY_CLASSES_ROOT\Applications\notepad.exe\shell\open\command]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,4e,00,4f,00,\
54,00,45,00,50,00,41,00,44,00,2e,00,45,00,58,00,45,00,20,00,25,00,31,00,00,\
00
[HKEY_CLASSES_ROOT\txtfile\shell\open\command]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,4e,00,4f,00,\
54,00,45,00,50,00,41,00,44,00,2e,00,45,00,58,00,45,00,20,00,25,00,31,00,00,\
00
然后双击该REG文件,将其中的信息导入注册表。问题解决。
出现两个记事本的原因是:注册表中这三处的信息不一致,有的使用相对路径,有的使用绝对路径,分别指向了“C:\Windows\notepad.exe”和“C:\Windows\System32\notepad.exe”这两个记事本程序。
造成注册表三处不一致的原因多种多样,可能由频繁的安装卸载软件造成,也可能由于使用了某软件造成。
附件下载: