|
今天小编发现右击选项中有两个记事本,搞得稀里糊涂的,后来百度了一下,终于解决了,接下来也把办法分享给也有这种情况的小伙伴们。 推荐:win7纯净版系统下载(win7zhijia.cn/xitong/chunjingban/)
原因分析: 因为在我们系统windows文件夹(C:\Windows)和system32文件夹(C:\Windows\System32)下面各有一个notepad.exe程序,系统在注册应用程序和文件关联打开方式的时候,分别使用了它们,但是打开方式又要读取这两个地方,所以就出现两个记事本了。 解决方法: 1、网站查找的方法:首先创建批处理,用来处理这个问题,把里面的代码复制粘贴到文本文件,保存为后缀。bat的文件,执行就可以了。
@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
2、经小编测试,再加上翻阅资料,上述源码有误,应该是:
...........
如要获得更多信息请访问win7zhijia.cn/jiaocheng/win7_4729.html文章链接
|