Solve the problem that Windows7 cannot search txt text content

Source: Internet
Author: User

Windows7 The default search box is to search only the file name, if you want the contents of the files, you need to set:

Open "My Computer", the upper left corner "organization" → "folder and search options" → "search" → "search content", tick "always search for file name and content", after determining, you can search for the contents of the files.

-------

But today I went to search the contents of the TXT file, unexpectedly search.

Check the problem individually:

1."Control Panel" → "Uninstall program" → "Turn Windows features on or off"

Search related to "Windows search" (main) and "Indexing Service" (this is to speed up the search speed)

The main look "Windows Search" has a wood open, if not just open under.

Then win+r run the input services.msc start the service, check whether the status of Windows Search is "started" and open it without booting.

2, if not yet, I estimate is the issue of the registry.

(Some time ago I toss emeditor, may affect the TXT related registry key)

1) Re-establish the TXT registry key, save the following to a. reg file, run it:

Windows Registry Editor Version5.00[hkey_classes_root\.txt]@="txtfile""PerceivedType"="text""Content Type"="Text/plain"[hkey_classes_root\.txt\persistenthandler]@="{5e941d80-bf96-11cd-b579-08002b30bfeb}"[Hkey_classes_root\.txt\shellnew]"Nullfile"=""

2) Add "new text document" To the right-click menu, save the following to a. reg file and run it:

Windows Registry Editor Version5.00[Hkey_classes_root\.txt] @="txtfile" "Content Type"="Text/plain"[Hkey_classes_root\.txt\shellnew]"Nullfile"=""[Hkey_classes_root\txtfile] @="Text Document"[hkey_classes_root\txtfile\shell][hkey_classes_root\txtfile\shell\open][hkey_classes_root\txtfile\shell\ Open\command] @="NOTEPAD. EXE%1"

3, after the completion, can indeed search txt content, but I want to search the contents of the PHP file is also not searched

I can now simply imitate the above txt inside the practice, feeling and persistenthandler have a relationship, so I do the following to do to search for PHP content

5.00 [hkey_classes_root\.php]@="php_auto_file"[hkey_classes_root\.php\ persistenthandler]@="{5e941d80-bf96-11cd-b579-08002b30bfeb}"

The main present of my understanding of the registry is also very superficial, slowly learning.

:)

Solve the problem that Windows7 cannot search txt text content

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.