How can I solve the problem of opening TXT text by right-clicking on two notebooks?

Source: Internet
Author: User
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?

 

 

 

 

 

 

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.