I finally bid I spend two years of Win2000, ushered in Win2003, and I have a search question for the first time, that is, search files.
The word function in the middle can only be for .txt text files! I can't get search results for .pas .java .jsp, etc..
After viewing help, you know the specific reason!
symptom
When you use a word or phrase search in the file to search for files containing text, there may be no files that contain the text you specify. For example, .log, .dll, .js, .ssp, .xml, .xsl, .hta, .css, .wsh, .cpp, .c, or .h file or file without file extensions, even if you are specified The text may not appear in the search results. This issue may occur even if you specify a file name or file type in the All or Some File Name box.
the reason
For file types that contain the text you specify, no filing components; or, the filter component ignores the text you specify. To use the word or phrase "search criteria, let the search results include a file type, you must register a valid filter component for the file type. Windows XP is only registered with the filter components for file types associated with common document types. Standard filter components in Windows XP include:
• Mimefilt.dll: Filter Multi-Use Internet Mail Extensions (MIME) Files • NLHTML.DLL: Filter HTML 3.0 or lower file • Offilt.dll: Filter Microsoft Office file (Microsoft Word, Microsoft Excel and Microsoft PowerPoint) • Query .dll: Screening plain text file (default filter) and binary (air screener) Because of the format or content of text, the filter component may ignore some text. For example, an HTML 3.0 filter (NLHTML.DLL) ignores the text included in the annotation of the HTML file (for example, the extension name .htm or .ASP), because these texts are not displayed when this type of file is opened in the browser .
Solution 1
To resolve this issue for other file types, install programs that can be registered for file types to search for. If you do not provide a filter available, you can use a plain text filter on the file type. To do this, add the PersistentHandler item to the file type item in HKEY_CLASSES_ROOT and set it to the following value:
{5E941D80-BF96-11CD-B579-08002B30BFEB}
For example, to use the text filter provider for the .PAS file, there should be the following registry settings:
HKEY_CLASSES_ROOT / .PAS / PERSISTENTHANDLER / (DEFAULT) = {5E941D80-BF96-11CD-B579-08002B30BFEB}
Method 2 To configure Windows XP to search for all files (regardless of the file type), get the latest Windows XP Service Pack, then open the Index File Type of Unknown Extensions.
If you use this method, Windows XP searches for the text you specified in all file types. This may affect the performance of the search function. To do this, follow these steps:
1. Click Start, and then click Search (or point to Search, and then click "File or Folder"). 2. Click "Change Preferences", and then click "Use the Creative Index Service (making local search faster)". 3. Click Change to make an Index Service Settings (Advanced). Please note that you don't have to open the index service. 4. On the Toolbar, click Show / Hide Console Tree. 5. In the left pane, right-click "Native Index Service" and click Properties. 6. On the Generate Tab, click to select the "Index File containing unknown extensions" check box, and then click OK. 7. Turn off the Index Service Console. Network administrators can configure this setting by modifying the registry. To do this, set the FilterFileswithunkNowNextensions two-byte value to 1 in the following registry key:
HKEY_LOCAL_MACHINE / SYSTEM / CURRENTCONTROLSET / CONTROL / ContentIndex