VB Script help ...

D

DizzyD

If anyone can assist on a vb script question.... What I
need is a vb script to read a text file and return JUST
the last line - it contains Totals, and also return the
file name. It can be ECHO back to screen or dumped to
Excel or notepad, THEN go thru and do all the files in
the folder ( about 50 ).
All files have a .dat extension and reside in the same
folder location, the file sizes are around 25k.

Example:
c:/incoming
ABC-1022.dat
AXJ-1033.dat
KHN-1305.dat


return:
ABC-1022.dat Total claims: 45
AXJ-1033.dat Total claims: 3
KHN-1305.dat Total claims: 199

Thanks...
 
Top