时间:2023-06-02 16:16:41 来源: 人气:
大师教您win10系统开始菜单右键菜单有两个“记事本”选项的问题?? 也许还有很多win10朋友不清楚win10系统开始菜单右键菜单有两个“记事本”选项的问题不知道解决,其实win10系统开始菜单右键菜单有两个“记事本”选项的问题不是很难,但是大部分网友还是不清楚应该怎么办,于是小编也在网站查询搜集,最后整理出win10系统开始菜单右键菜单有两个“记事本”选项的情况实在太难了,只需要按照;1、打开记事本,复制以下代码进去:2、然后另存为 记事本.bat 保存时记得将文件类型选择为“所有文件”;;就ok了。下面不知道的网友赶快学习一下win10系统开始菜单右键菜单有两个“记事本”选项完整解决思路吧!
解决方法:
@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