{
"$type": "site.standard.document",
"canonicalUrl": "https://justingarrison.com/blog/2011-12-05-how-to-search-for-text-inside-of-any-file-using-windows-search",
"coverImage": {
"$type": "blob",
"ref": {
"$link": "bafkreihvgce7qwfbuu6vbxtvx6vcfhurpyropm5vhcabxqo4kbiqsn7dou"
},
"mimeType": "image/png",
"size": 19048
},
"description": "Many of us rely on Windows Search to find files and launch programs, but",
"path": "/blog/2011-12-05-how-to-search-for-text-inside-of-any-file-using-windows-search",
"publishedAt": "2011-12-05T11:00:09.000Z",
"site": "at://did:plc:p7uix7mresfq4nfzxp3klgfa/site.standard.publication/3mmdn7mg2qm2d",
"textContent": "Many of us rely on Windows Search to find files and launch programs, but searching for text within files is limited to specific file types by default. Here’s how you can expand your search to include other text-based files.\n\nWe have shown you some advanced search operators using Windows Search before and even how to change which files are indexed and how to rebuild your search index. But what about searching for text inside of .html, .php, .js, and other text-based web and scripting files? Windows search allows you to include other file extensions in its index with a few simple clicks.\n\nThis technique works in Windows 10, 8, 7, or even Vista. The screens might look a little different, but it’s the same basic process on all versions.\n\nHit Start, type “index,” and then click the “Indexing Options” result.\n\n!/img/sif_1.png\n\nIn the “Indexing Options” window, click the “Advanced” button.\n\n!/img/sif_2.png\n\nIn the “Advanced Options” window, switch to the “File Types” tab. Select the extension for the file type you would like to include in content searches, and then select the “Index Properties and File Contents” option under the list. The text in the “Filter Description” column should change to reflect whatever filter is used to open that file type by default. In our example, we’re selecting the BAT extension, so the filter type changes to “Plain Text Filter.”\n\n!/img/sif_3.png\n\nIf you don’t find file type you’re looking for on the list, it means no app is set as the default handler for that file type. To add the file type, type the extension in the “Add New Extension to List” box and then click the “Add” button. By default, Windows Search will use a plain text filter to search the contents of those types of files, since another app is not associated.\n\n!/img/sif_4.png\n\nAfter the index is rebuilt, searching for text inside one of the new file types should now show results.\n\n!/img/sif_5.png\n\nIf you’d like to always search within file contents for a specific folder, navigate to that folder in File Explorer and open the “Folder and Search Options.”\n\n!/img/sif_6.png\n\nOn the “Search” tab, select the “Always search file names and contents” option.\n\n!/img/sif_7.png\n\nAfter the index rebuilds, searches in that folder will automatically include file contents.",
"title": "How to Search for Text Inside of Any File Using Windows Search"
}