win7系统打开方式中有两个记事本选项的方法介绍
时间:2021-09-11 11:18:20 来源:www.cnomit.cn 作者:佚名 浏览次数:
解决方法:
1、新建一个记事本,将下面的代码复制进去,如图所示;
@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
上面给大家介绍的就是关于win7系统打开方式中有两个记事本选项的解决方法,还有不知道怎么解决的小伙伴赶快来学习一下吧!相信这篇文章一定可以帮到大家!