How to find file in whole drive which has particular string?

October 27, 2012 at 06:12:11
Specs: Windows XP
Hi All,


I want to find the file (specifically *.bat file only) in whole D drive which has the string "ABC"

"ABC" string should presnt in that file content and I want to print the path along with that file name in one txt file.

I am able to get all the *.bat files in D drive (from all folder & subfolder) & able to find the file with "ABC" as a content using FIND command. But not able to combine this both logics and build one batch file which will do this together and provide me one txt file which will have list of all the *.bat files along with path which has ABC" string presnt in that file content


See More: How to find file in whole drive which has particular string?

Report •


#1
October 27, 2012 at 06:16:10

Report •

#2
October 27, 2012 at 06:22:30
I tried that as well. But I am not much aware of Batch coding. It would be really helpfull if I get this code completly buidl here. If someone has it pls post here

Report •
Related Solutions


Ask Question