How do I (recursively) search all file contents in Windows 7? I am using the content:xxx
command, in the Search settings
box in Windows Explorer, to search xxx
in this example. This does not work:
As an example of how this search is broken, I see an org.eclipse.wst.common.component
file with text that I am searching for and Windows 7 is not returning it in the results. I assume it's only searching known text-based file types. How can I make it search all files? I need to find everything I am looking for.
P.S. If there is a DOS-based solution, I will also accept this. Maybe a batch file using dir /s /b
and findstr
could be constructed.
EDIT: Noted my need for a recursive search.
"user3245549" is right:
All of the above answers with "for loops" and nested bat files are mumbo jumbo. All you need is to just use "findstr" - example:
C:\temp> findstr /S /C:"/work" * | more <-- this will find the string "/work" in any file
or
C:\temp> findstr /S /C:"/work" "*.*" | more
or
C:\temp> findstr /S /C:"/work" * > results.txt
or
C:\temp> findstr /S /C:"/work" "*.*" > results.txt
NOTE: You can leave out the "double-quotes" around the asterisks - I just put those because the editor here on Stackoverflow was stripping out the asterisks on either side of the period. NOTE ALSO: You still need the quotes around the "string text" for which you are searching, as far as I know.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With