How to search contents of files in folder?

48,183

Solution 1

Findstr may fit if you are familiar with Windows command line, findstr is some kind of grep for Windows, and it comes with Windows starting version XP. Personally Im using bash for windows, and grep inside of that, but this is third party software, and do not comes with Windows by default. Example of findstr: enter image description here

\s searches for matching files in the current directory and all subdirectories

2>nul is to get rid of errors for files that you cannot open

Solution 2

In the upper-right of Explorer, there's a search box.

Complete that, and press search. After that search completes, there'll be a "Search again in:" at the bottom of the screen. Here you can specify for it to search the File Contents

Share:
48,183

Related videos on Youtube

CJ7
Author by

CJ7

Updated on September 18, 2022

Comments

  • CJ7
    CJ7 almost 2 years

    In Win 7, how can I search for a word in the contents of all files in a specific folder.

    In XP this was easy. All you had to do was type the word into the "A word or phrase in file" text box on the search window and it would only include files containing that word in the search results.

  • CJ7
    CJ7 over 11 years
    So no way to do it from the outset?
  • dakab
    dakab over 3 years
    Thanks for the graphic detail.