The Computer Oracle

How to search inside files on Windows 7?

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Hypnotic Orient Looping

--

Chapters
00:00 Question
00:39 Accepted answer (Score 132)
01:50 Answer 2 (Score 113)
02:07 Answer 3 (Score 84)
02:29 Answer 4 (Score 57)
02:48 Thank you

--

Full question
https://superuser.com/questions/60173/ho...

Question links:
[Microsoft search filters]: http://windows.microsoft.com/en-us/windo...

Accepted answer links:
[Change advanced indexing options]: http://windows.microsoft.com/en-gb/windo...
[Indexing Options]: http://www.windows7update.com/Windows7-I...
[this page]: http://www.windows-noob.com/forums/index.../

Answer 2 links:
[AstroGrep]: http://astrogrep.sourceforge.net

Answer 4 links:
[findstr]: http://technet.microsoft.com/en-us/libra...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#windows7 #windows #windowssearch #filefilter

#avk47



ACCEPTED ANSWER

Score 133


To get to the Indexing Options:

Start --> Control Panel --> Indexing Options

See Change advanced indexing options for more information.

If you click on the Advanced button in Indexing Options and go to the File Types tab, you will get a list of file types and the way they are indexed. For the file types you want, you can specify that you want the file contents indexed, and not just the file properties.

Or you can just do a normal search, and after the search is finished you can click on the "File Contents" button under the "Search again in" field (which is located after the end of the search results list, if you scroll to the bottom).

Based on this page, the "File Contents" option won't always show up - only when the folder being searched is not marked for file content indexing; in that case, file contents are supposedly searched automatically, without having to specify this option explicitly.




ANSWER 2

Score 113


I've always gotten better performance when searching inside files by using a GREP tool. I'm a fan of AstroGrep.




ANSWER 3

Score 85


I believe you can also just enter "content:blahblah" in the search filter box in upper right corner of Windows Explorer. This works at least for Text files and Office documents. It also works for source files.




ANSWER 4

Score 56


You can play with findstr.

findstr /s /m searchstring *.*

Options description:

/S         Searches for matching files in the current directory and all subdirectories.
/M         Prints only the filename if a file contains a match.