I am trying to make a program that finds a name in a bunch of different text files, and then makes a list of the files it found that name in into another text file for a different program to pick up and run with.
I have a bunch of findstr
lines for each of the files I'm looking for the name in, and the results need to be able to handle finding the name in multiple different files.
findstr /l /m /i /g:"imput.txt" "info\data\ListOfNames1.txt" >>"results.txt"
The list of names increases by 1 on every line.
I have johnDoe
in the imput.txt
and in ListOfNames1.txt
, but results.txt
is always blank.
Thanks in advance!
Okay, so the problem was that ListOfNamesX.txt
was in a bunch of folders and I forgot to mention the %CD%
in the filepath. I guess that's what a good nights sleep can do for you.