Batch file to get perticular row from multiple text file in folder

DingDang's Avatar, Join Date: Jun 2012
Newbie Member
I have multiple text files in folder in which there is row start from "Total"
I want batch file which get all row of file start from Total in one file also start from file name
file in folder c:\text\ file name 1.txt, 2.txt, on

result required in seprate file save auto as summary.txt in same foleder.

file name total
1.txt 12121.00
2.txt 23232.00
3.txt 454545.00

Pls help
deepak_sam's Avatar, Join Date: Aug 2012
Go4Expert Member
Iam not sure if a batch file can be created like the way your looking for. But what i can suggest is that you can use Notepad++ .. Install it on a common folder. Paste all you Notepads into the installation folder so that when you open Notpad ++ application all the TXT files will be displayed in different tabs. You can try to find a line in all the txt as your looking for. this will create a summary.txt as well.
shabbir like this