The Win7 system usually has a notepad option when you right-click on a text class file and choose "Open Mode". We can directly click on the right to open "notepad", recently Win7 system user feedback in their own system open mode has Notepad options into two, although the choice of which can be opened, But it looks very strange and takes up space. So is there any way we can remove one of them and leave only one? The answer is yes, let's look at the reasons and solutions together.
Failure Reason:
Many users would wonder why this happened, by analyzing what we found in C:windows and C: Windowssystem32 two folders have Notepad.exe, and the system in the association open the program when they registered separately, so there will be two Notepad options, of course, single Delete a main program is not.
Workaround:
1, open Notepad, copy the following code in:
@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 save Remember to select the file type as "All Files";
3. Double-click to run Notepad. bat, there will be only one notepad left.
The above command is actually batch processing to modify the registry key value to achieve the effect of repair, encountered the same problem can be solved by the above method.
Note : More wonderful tutorials Please pay attention to the triple computer tutorial section, triple Computer office group: 189034526 welcome you to join