精品丰满熟女一区二区三区_五月天亚洲欧美综合网_亚洲青青青在线观看_国产一区二区精选

  • <menu id="29e66"></menu>

    <bdo id="29e66"><mark id="29e66"><legend id="29e66"></legend></mark></bdo>

  • <pre id="29e66"><tt id="29e66"><rt id="29e66"></rt></tt></pre>

      <label id="29e66"></label><address id="29e66"><mark id="29e66"><strike id="29e66"></strike></mark></address>
      學(xué)習(xí)啦 > 學(xué)習(xí)電腦 > 電腦知識大全 > Win7右鍵打開方式有兩個記事本選項怎么辦

      Win7右鍵打開方式有兩個記事本選項怎么辦

      時間: 家輝661 分享

      Win7右鍵打開方式有兩個記事本選項怎么辦

        在Win7系統(tǒng)中右鍵選擇程序打開方式的時候,發(fā)現(xiàn)有2個記事本選項,選擇哪個效果都一樣,但之前都只有一個記事本選項的,那么要如何將多余的記事本選項刪除呢?下面學(xué)習(xí)啦小編就給大家介紹一下Win7右鍵“打開方式”出現(xiàn)兩個記事本的原因及解決方法,歡迎大家參考和學(xué)習(xí)。

        具體的故障現(xiàn)象如下圖所示:

        原因分析:

        因為在我們系統(tǒng)windows文件夾(C:\Windows)和system32文件夾(C:\Windows\System32)下面各有一個notepad.exe程序,系統(tǒng)在注冊應(yīng)用程序和文件關(guān)聯(lián)打開方式的時候,分別使用了它們,但是打開方式又要讀取這兩個地方,所以就出現(xiàn)兩個記事本了。

        解決方法:

        1、首先創(chuàng)建批處理,用來處理這個問題,把里面的代碼復(fù)制粘貼到文本文件,保存為后綴.bat的文件,執(zhí)行就可以了。

        @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、然后就可以解決右鍵選擇打開方式中出現(xiàn)兩個記事本選項了。

        命令簡單介紹:

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

        這句話是設(shè)置一個變量: Npath=“%systemroot%\notepad.exe %”1,這個變量將寫入注冊表。

        %1 表示參數(shù)

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

        這個方法算是解決了txt后綴文件打開方式出現(xiàn)兩個文件夾的問題。

        總結(jié):

        我們在設(shè)置txt后綴打開類型的時候,

        設(shè)置了HKEY_CLASSES_ROOT\SystemFileAssociations\text\shell\open\command=%systemroot%\notepad.exe

        這就導(dǎo)致text類型直接映射到c:\Windows\notepad.exe

        這時候包括ini文件inf文件在內(nèi)的所有PerceivedType=text的文件類型映射到了c:\Windows\notepad.exe。

        ini,inf文件的打開類型已經(jīng)映射到了c:\Windows\System32\notepad.exe

        這時候就會右鍵打開---出現(xiàn)兩個記事本選項。。

        解決的根本之道就是,將HKEY_CLASSES_ROOT\SystemFileAssociations\text\shell\open\command=%systemroot%\System32\notepad.exe

        請使用命令:

        @echo off

        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

        最后我們看看所謂的ini文件:

        以上就是學(xué)習(xí)啦小編為大家整理的Win7右鍵“打開方式”出現(xiàn)兩個記事本的解決方法介紹了,其實兩個記事本選項并不會影響用戶的使用,可以不刪除,希望對大家有所幫助。

      380053