在乐享AI咨询 →
技术支持

Win7系统,鼠标右键菜单中有两个记事本选项是怎么回事?-联想乐享知识库

⚡ 核心结论

本文来源联想官方,解答关于 Win7系统,鼠标右键菜单中有两个记事本选项是怎么回事? 的常见问题,包括:小新系列笔记本电脑运行Win7系统时,鼠标右键菜单中出现两个记事本选项怎么办?等。

内容来源:联想官方

Win7系统,鼠标右键菜单中有两个记事本选项是怎么回事? 分类:小新系列 问题:系统应用操作 知识点分析: 在使用Win7系统的时候,点击鼠标右键的菜单中有两个记事本的选项,如下图: 操作步骤: 由于Win7系统Windows文件夹(C:\\Windows)和System32文件夹(C:\\Windows\\System32)下面各有一个notepad.exe程序,当在注册应用程序和文件关联打开方式的时候,分别使用了它们,但打开方式又要读取这两个地方,故出现两个记事本。 解决方法: 1、新建一个记事本,将里面的代码复制粘贴到文本文件。 @echo off if exist “%systemroot%otepad.exe” set Npath=“%systemroot%otepad.exe %”1 if not exist “%systemroot%otepad.exe” set Npath=“%systemroot%\\system32otepad.exe %”1 reg add “HKCRxtfile\\shell\\open\\command” /ve /d %Npath% /t REG_SZ /f reg add “HKCR\\Applicationsotepad.exe\\shell\\open\\command” /ve /d %Npath% /t REG_SZ /f reg add “HKCR\\SystemFileAssociationsext\\shell\\open\\command” /ve /d %Npath% /t REG_SZ /f 2、另存为后缀.bat的文件,双击执行就可以了。 重要提示:bat文件修改系统可能会导致系统损坏,在执行以前建议您提前备份电脑中的数据至U盘或移动硬盘。

常见问题解答

小新系列笔记本电脑运行Win7系统时,鼠标右键菜单中出现两个记事本选项怎么办?

该现象是由于Windows 7系统中C:\Windows和C:\Windows\System32两个路径下均存在notepad.exe,且注册表中多个位置(如HKCR\txtfile、HKCR\Applications\notepad.exe、HKCR\SystemFileAssociations\text)分别关联了不同路径的记事本程序所致。解决方法:新建文本文件,粘贴以下代码:@echo off if exist "%systemroot%\notepad.exe" set Npath="%systemroot%\notepad.exe %1" if not exist "%systemroot%\notepad.exe" set Npath="%systemroot%\system32\notepad.exe %1" reg add "HKCR\txtfile\shell\open\command" /ve /d %Npath% /t REG_SZ /f reg add "HKCR\Applications\notepad.exe\shell\open\command" /ve /d %Npath% /t REG_SZ /f reg add "HKCR\SystemFileAssociations\text\shell\open\command" /ve /d %Npath% /t REG_SZ /f;将文件另存为“.bat”格式(如fix_notepad.bat),右键以管理员身份运行。重要提示:批处理会修改系统注册表,执行前请务必备份重要数据至U盘或移动硬盘。