Many of my friends will find two "notebooks" in the right-click menu. Some of my timid friends think they are poisoned. In fact, this is also a normal thing, because in our system Windows folder and system32 folder, there is a notepad.exe program, the system is registering an application and When the file is associated with the open method, they are used separately, but the open method needs to read the two places, and the two notebooks are displayed, when I say this, my friends should understand what is going on!
I have done a batch processing to solve this problem. copy and paste the Western code to a text file, save the file with the suffix BAT, and execute it. Please indicate the source of the post! Rem solves the problem of double notepad in the open mode. @ 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 ========================================================== ============================================ |
Solution 2:
Right-click the TXT text file and find that there are two ways to open notepad in the right-click mode, both of which can be opened.
No virus
I have read many posts with the same questions on the Internet and found that many people's answers are modified in the registry.
Deleted.
Finally, select "Tools" in the folder.
"/" Folder Options "/" file type "/find this type of file. For example, right-click to find two notebooks in log format and find the log format. Then, press the "advanced" button to delete all operations according to the file type/operation. Then click "OK"/"close ".
Close Window
Double-click this type of file (any one). A window is displayed that cannot be opened and must be opened.
Select from the list, select notepad from the list, and check "Always Use selected programs ".
Open this type of file ". Are you sure you want to check whether there are two notebooks in the context menu?