Win7 right click "Open mode" How do I have two notebook options?

  

When you right-click on the Win7 system to select the program open mode, you will find 2 notebook options, which effect is the same, but there is only one Notepad option before, then how to delete the extra Notepad option What? The following small series to introduce Win7 right & ldquo; Open & rdquo; two reasons notepad and solutions

Analysis:

Because in our windows system folder. There is a notepad.exe program under the (C:\\Windows) and system32 folders (C:\\Windows\\System32). The system uses them when registering the application and file association open mode, but the opening method is Read these two places, so two notebooks appear.

Solution:

1. First create a batch to handle this problem, copy and paste the code inside to a text file, save it as a suffix .bat file, and execute it. .

@echo off

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

if Not exist “%systemroot%\ otepad.exe” set Npath=“%systemroot%\\system32\ otepad.exe %”1

reg add “HKCR\\txtfile\\shell\\open\\command” /ve /d %Npath% /t REG_SZ /f

reg add “HKCR\\Applications\ otepad.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, then you can solve the right-click selection in the open mode Two notepad options are available.

A brief introduction to the command:

if exist “%systemroot%\ otepad.exe” set Npath=“%systemroot%\ otepad.exe %”1 Previous12Next Page total 2 pages

Copyright © Windows knowledge All Rights Reserved