Friday, 14 August 2015

Search for a keyword in multiple files

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