J
jamstraz
My boss has asked me to write a vbscript to parse data from a text
file, but the fun thing is I have 0 experience with doing anything like
this. But here's the situation:
I have a batch file that downloads 3 files from an ftp site and then
stores the output of the transfer statistics to a textfile. Anothe
batchfile uses regular expression to remove extraneous lines so that I
now only have 3 lines (1 for each of the files)
Ex (In notepad, file is c:\receivelog.log)
---------- C:\FTPLOG.LOG
ftp: 176768000 bytes received in 36.11Seconds 4895.81Kbytes/sec.
ftp: 31838208 bytes received in 7.12Seconds 4471.03Kbytes/sec.
ftp: 1411072 bytes received in 0.27Seconds 5304.78Kbytes/sec.
What needs to be done is to somehow extract the data per each run of
the batch files (this file will contain different stats the next time
it is recreated by running the batch files) and then place it into
another file that can then be used by Excel to create charts to examine
bandwidth statistics. The file I would need would look something like:
36.11 4895.81
7.12 4471.03
0.27 5302.78
at first of course, and after each successive run, this file would have
more statistics listed per each iteration.
PLEASE HELP!!!! I'm on a deadline.
An exact code would be great, and I would credit you in the file...
file, but the fun thing is I have 0 experience with doing anything like
this. But here's the situation:
I have a batch file that downloads 3 files from an ftp site and then
stores the output of the transfer statistics to a textfile. Anothe
batchfile uses regular expression to remove extraneous lines so that I
now only have 3 lines (1 for each of the files)
Ex (In notepad, file is c:\receivelog.log)
---------- C:\FTPLOG.LOG
ftp: 176768000 bytes received in 36.11Seconds 4895.81Kbytes/sec.
ftp: 31838208 bytes received in 7.12Seconds 4471.03Kbytes/sec.
ftp: 1411072 bytes received in 0.27Seconds 5304.78Kbytes/sec.
What needs to be done is to somehow extract the data per each run of
the batch files (this file will contain different stats the next time
it is recreated by running the batch files) and then place it into
another file that can then be used by Excel to create charts to examine
bandwidth statistics. The file I would need would look something like:
36.11 4895.81
7.12 4471.03
0.27 5302.78
at first of course, and after each successive run, this file would have
more statistics listed per each iteration.
PLEASE HELP!!!! I'm on a deadline.
An exact code would be great, and I would credit you in the file...