Fast search within text files in windows

I always use findstr, which is roughtly comparable to grep, but windows native.

Example:

findstr /s /i /m "MyClass" *.cpp

This will search recursively (/s) within the current folder. It will look into every file whose name matches *.cpp for the string MyClass.

/i ignores case

/m only print file names of matching files

You can open command line windows anywhere in windows by doing a right click while holding down shift anywhere on the free space in any folder. (Don't right click on files)

findstr will be noticably faster the second time you search within the same directory since windows caches opened files.


You can use Windows Search it is available for Win XP up to Win 7. A more complete list of desktop search engines can be found at wikipedias site about desktop search engines

Edit: A good (probably the best) tool to find stuff in text files (w/o caches) is grep. (Refer to my comment to the question)