- 作者:佚名
- 时间:2019-04-28
朋友们在使用win7系统电脑时,偶尔就会碰到win7系统右键菜单有两个“记事本”的状况。如果在平时的使用过程中遇到win7系统右键菜单有两个“记事本”情况的话,相信许多朋友都不知道应该怎样去处理,那其实想要解决win7系统右键菜单有两个“记事本”问题的话是非常简单的,我们只需要操作 1、打开记事本,复制以下代码进去: 2、然后另存为 记事本.bat 保存时记得将文件类型选择为“所有文件”;即可轻松处理。那如果大家还想要了解详细操作步骤的话,可以跟着下面的教程进行操作,一起解决win7系统右键菜单有两个“记事本”的问题。

故障原因:
很多用户都会奇怪为什么会出现这样的情况,通过分析我们发现在C:windows和C:windowssystem32两个文件夹中都有notepad.exe,而系统在关联打开程序的时候又分别注册了它们,所以就会有了两个记事本选项了,当然单凭删除一个主程序是不行的。

解决方法:
1、打开记事本,复制以下代码进去:
@echo off
if exist “%systemroot%notepad.exe” set Npath=“%systemroot%notepad.exe %”1
if not exist “%systemroot%notepad.exe” set Npath=“%systemroot%system32notepad.exe %”1
reg add “HKCRtxtfileshellopencommand” /ve /d %Npath% /t REG_SZ /f
reg add “HKCRApplicationsnotepad.exeshellopencommand” /ve /d %Npath% /t REG_SZ /f
reg add “HKCRSystemFileAssociationstextshellopencommand” /ve /d %Npath% /t REG_SZ /f
2、然后另存为 记事本.bat 保存时记得将文件类型选择为“所有文件”;
3、双击运行记事本.bat ,就会只剩下一个“记事本“了。
以上命令其实是以批处理的方式来修改注册表键值达到修复的效果,遇到相同故障问题可以采取上面方法解决了。