Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7523129
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T02:42:21+00:00 2026-05-30T02:42:21+00:00

How do I (recursively) search all file contents in Windows 7? I am using

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T02:42:23+00:00Added an answer on May 30, 2026 at 2:42 am

    Here is my three file DOS solution, but I am still looking for a proper Windows 7 solution if anyone has one:

    1. search.bat

    @ECHO off
    FOR /r %%a IN (*.*) DO CALL process.bat %%a
    

    Searches all files recursively, and runs process.bat on each one.

    2. process.bat

    @ECHO Off
    ECHO "%1" >> output.txt
    TYPE "%1" | FINDSTR /i "search_string_here" >> output.txt
    

    Prints out the name of each file, in quotes because some files will break the batch file code without, then finds the search string, search_string_here, and prints out the entire line that the search string is found in.

    3. output.txt (sample output)

    Contains the output, formatted as follows, searching search_string_here in my project_name Java project stored in D:\project_name\, displaying all files searched as well as results if there are some:

    "D:\project_name\.classpath" 
    "D:\project_name\.project" 
        <name>search_string_here</name>
    "D:\project_name\content_search_all_files.bat" 
    "D:\project_name\output.txt" 
        <name>search_string_here</name>
    "D:\project_name\pom.xml" 
    ...
    

    Above you can see that search_string_here was found, full line being <name>search_string_here</name>, in D:\project_name\.project file… among other results.

    Again, I am still looking for a proper Windows 7 solution if anyone has one.

    Warning: “Line is too long” Errors; FINDSTR may be buggy:

    Apparently, FINDSTR < grep, as if you didn’t know. Here’s an article that dives into the error in FINDSTR that are do not reproduce when the same input is used in a different file:

    Obviously, “line is too long” is a catch-all message for a number of
    different errors. FINDSTR has some issues. Some time ago, I said that
    FINDSTR was marginally useful. After today, I’d say it’s even less
    useful than I thought it was then.
    – http://blog.mischel.com/2008/10/14/copying-large-files-on-windows/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I snaged this sub off the web to recursively search all the files including
I am using signtool to sign my msi. How to recursively search all the
For debugging purposes, I need to recursively search a directory for all files which
I am using grep recursive to search files for a string, and all the
I am trying to recursively search through a directory for all sub-directories within any
This is a follow up post to this one: Recursively search nested lists I've
Using bash, how can I search for all occurrences of the substring 'foo' in
I need to recursively search directories and replace a string (say http://development:port/URI ) with
I want to recursively search and replace elements in an array. The array is
I have the following code to recursively search for files through a directory, which

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.