Quantcast
Channel: Microsoft Techies
Viewing all articles
Browse latest Browse all 430

Search for a keyword in multiple files

$
0
0
Open command prompt
Go to folder path where your files are there.
c:\abc>
Type below command.

 forfiles /D -1 |findstr /I /S /P /M SearchKeyword * >c:\temp\results.txt

Now you will see result file names under ::\temp\results.txt

Ex: c:\abc> forfiles /D -1 |findstr /I /S /P /M redmond * >c:\temp\results.txt

Viewing all articles
Browse latest Browse all 430

Trending Articles