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