Right-click menu has two "Notepad" how to do

  

win7 system right click on the text class file selection "Open the way" when there is usually a "Notepad" option, we can directly click to open & rdquo Notepad & ldquo;, recently there are win7 system user feedback in the open mode of their own system has a Notepad option into two, although you can choose to open, but look very strange, but also take up space. So, is there a way to delete one of them and leave only one? The answer is yes, let's take a look at the reasons and solutions.

Fault reason:

Many users will wonder why this happens. Through analysis, we found that there are notepad.exe in both C:windows and C:windowssystem32 folders. The system registers them separately when the program is opened, so there are two notebook options, of course, it is not possible to delete a main program.

Solution:

1. Open Notepad and copy the following code:

@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, then save as Notepad.bat Remember to select the file type as “ File”;

3, double-click to run Notepad.bat, there will be only one "Notebook“.

The above command is actually to modify the registry key value to achieve the repair effect in batch mode. If you encounter the same fault problem, you can solve the problem by the above method.

Note: For more exciting tutorials, please pay attention to the computer tutorial section, computer office group: 189034526 welcomes you to join

Copyright © Windows knowledge All Rights Reserved