Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Visual Basic ( VB ) (http://www.go4expert.com/forums/visual-basic/)
-   -   Batch file to get perticular row from multiple text file in folder (http://www.go4expert.com/forums/batch-file-perticular-row-multiple-text-t28645/)

DingDang 30Jun2012 20:32

Batch file to get perticular row from multiple text file in folder
 
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
e.g
file in folder c:\text\ file name 1.txt, 2.txt,3.txt.....so 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 24Aug2012 11:09

Re: Batch file to get perticular row from multiple text file in folder
 
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.


All times are GMT +5.5. The time now is 12:40.