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

Discussion in 'Visual Basic ( VB )' started by DingDang, Jun 30, 2012.

  1. DingDang

    DingDang New Member

    Joined:
    Jun 30, 2012
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    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
     
  2. deepak_sam

    deepak_sam New Member

    Joined:
    Aug 20, 2012
    Messages:
    16
    Likes Received:
    1
    Trophy Points:
    0
    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 likes this.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice