DOS Batch - Find text throught multiple files of same name
Posted on 2008-10-22
I'd like to use a DOS Batch file to do the following...
Search Z:\ (All subdirectories)
for all files named, "appconfig.txt"
If appconfig.txt contains, <dependencylist>
whereas each appconfig.txt file may contain many instances of "<dependencylist>"
then write to output file,
Full directory path
full text from line containing "<Dependencylist>"
Hope I was clear in what I'm looking to do. If not, please ask me to elaborate. This is probably a simple thing to do... I just don't recall how to do it.
Winver is 5.1.2600 / 5.2.3790