Computing.Net > Forums > Windows XP > BAT files for reading a file

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

BAT files for reading a file

Reply to Message Icon

Name: onlyraja
Date: October 27, 2006 at 03:59:26 Pacific
OS: Windows XP
CPU/Ram: P IV
Product: Intel
Comment:

Can any one please help me to write a BATCH file for my below requirement.

I've 20 different text files in a folder.
I need to read each and every file for fetching certain details, and finally i need to generate a text file with the collected details.

Each file contains details like this :
DIRECTOR> TM_6014 Initializing session [s_UPDATE_LOAN_DELINQUENCY] at [Sun Oct 15 22:37:09 2006]
DIRECTOR> TM_6252 Source Load Summary.
DIRECTOR> CMN_1740 Table: [SQ_STG_LSLON] (Instance Name: [SQ_STG_LSLON])
Output Rows [2173188], Affected Rows [2173188], Applied Rows [2173188], Rejected Rows [0]
DIRECTOR> TM_6253 Target Load Summary.
DIRECTOR> CMN_1740 Table: [LOAN_DELINQUENCY] (Instance Name: [LOAN_DELINQUENCY_UPDATE])
Output Rows [2173080], Affected Rows [2173080], Applied Rows [2173080], Rejected Rows [0]
DIRECTOR> TM_602
DIRECTOR> TM_6020 Session [s_UPDATE_LOAN_DELINQUENCY] completed at [Mon Oct 16 00:28:11 2006]

I need to fetch start time, end time, no of records loaded. Here in this case, the start time is Oct 15 22:37:09 2006
End time is Oct 16 00:28:11 2006
No of records loaded are 2173080

I am waiting for some good solutions from you friends. Can any one please help me



Sponsored Link
Ads by Google

Response Number 1
Name: Wombat
Date: October 27, 2006 at 15:21:53 Pacific
Reply:

Go here, this is the XP forum what you want is the prommaming forum...

http://computing.net/programming/ww...

Quote: Artificial intelligence is no match for natural stupidity!

The anagram of computervitals is pivotal rectums...


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows XP Forum Home


Sponsored links

Ads by Google


Results for: BAT files for reading a file

search for read only files www.computing.net/answers/windows-xp/search-for-read-only-files/67988.html

Saving location for a bat file ?? www.computing.net/answers/windows-xp/saving-location-for-a-bat-file-/90524.html

.bat file for installing updates www.computing.net/answers/windows-xp/bat-file-for-installing-updates/138270.html