Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Count number of records in a text file

Status
Not open for further replies.

puredesi5

Programmer
Sep 26, 2001
50
US
Does anyone know of any program that counts/returns number of records in a text file? If there is, I would like to use it in a batch script running on NT server to keep track of number of records in a particular file. I would like to log the information in a log file so I would have history of how many records were in a file on a given day.

Thanks,

Puredesi
 
You could just write your own vbscript and have it scheduled to run at night.

All it would have to do is open the file count the lines and then write the date and the number of lines into a log file.

===============
Security Forums
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top