欢迎登陆真网站,您的到来是我们的荣幸。 登陆 注册 忘记密码? ☆设为首页 △加入收藏
欢迎加入真幸福QQ群
电脑知识: 基础知识 网络技术 操作系统 办公软件 电脑维修 电脑安全 windows7 windows8 windows10 服务器教程 平板电脑 视频播放教程 网络应用 互联网 工具软件 浏览器教程 QQ技巧 输入法教程 影视制作 YY教程 wps教程 word教程 Excel教程 PowerPoint
云南西双版纳特产小花糯玉米真空包装


win7系统播放视频出现锯齿线条问题的解决方法
win7系统将时间调整为24小时制的操作方法教程
win7系统打开预览窗口显示速度过慢怎么处理
windows7系统打印机print Splooer停止无法使用怎么办
Win7双显示器窗口最大化时不能全部显示的完美处理措施
win7系统登录QQ输入正确密码却提示错误怎么办
Win7系统上的音频管理器如何关闭
win7电脑经常掉线怎么办?
Win7系统下无线USB网卡如何使用
如何快速卸载win7电脑中的软件
Win7右键”打开方式“中有两个相同的记事本选项的原因和解决方法
【 来源:网络 】【 点击:1 】 【 发布时间:2017_03_03 08:59:59 】

 Win7右键”打开方式“中有两个相同的记事本选项的原因和解决方法 三联

  原因分析:

  因为在我们系统windows文件夹(C:Windows)和system32文件夹(C:WindowsSystem32)下面各有一个 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%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、然后就可以解决右键选择打开方式中出现两个记事本选项了。

  命令简单介绍:

  if exist “%systemroot%notepad.exe” set Npath=“%systemroot%notepad.exe %”1

  这句话是设置一个变量: Npath=“%systemroot%notepad.exe %”1,这个变量将写入注册表。

  %1 表示参数

  比如你想打开1.txt,就是用 命令:notepad 1.txt搞定。

  这个方法算是解决了txt后缀文件打开方式出现两个文件夹的问题。

  总结:

  我们在设置txt后缀打开类型的时候,

  设置了HKEY_CLASSES_ROOTSystemFileAssociationstextshellopencommand=%systemroot%notepad.exe

  这就导致text类型直接映射到c:Windowsnotepad.exe

  这时候包括ini文件inf文件在内的所有PerceivedType=text的文件类型映射到了c:Windowsnotepad.exe。

  ini,inf文件的打开类型已经映射到了c:WindowsSystem32notepad.exe

  这时候就会右键打开---出现两个记事本选项。。

  解决的根本之道就是,将HKEY_CLASSES_ROOTSystemFileAssociationstextshellopencommand=%systemroot%System32notepad.exe

  请使用命令:

  @echo off

  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

  最后我们看看所谓的ini文件:

本网站由川南居提供技术支持,fkzxf版权所有 浙ICP备12031891号
淳安分站 淳安分站