|I need to pull a certain line of text from many text files. I am able to do so with this...|
:: MYBAT.BAT Usage mybat Folder_Name
if exist FileNew.txt del FileNew.txt
for %%j in (*.txt) do type "%%j" | find "uniquestring" >> FileNew.new
ren FileNew.new *.txt
Now I need to add to each line of text the filename of where it came from. Any ideas?