Hi,
I have a log file generated everyday which is called Log followed by the date 03122009 so the name is Log03122009.txt
Its on the same machine where I'm running my code C:\Logs\.
On the second line (not at the beginning) I have the following:
Record Counts: 333
I would like to open up the log file for today, compare the number with yesterday and send an email to my email address if it is not higher today than yesterday.
The record count should always increase in every log but sometimes it doesn't and as I said I'd like windows to send an email (via outlook?) to notify me so I don't have to keep checking each day.
Can anyone help me with the code necessary to:
Open the text file
Find the number in the text file
Email myself something through outlook
Any pointers would be great
tx
grd
I have a log file generated everyday which is called Log followed by the date 03122009 so the name is Log03122009.txt
Its on the same machine where I'm running my code C:\Logs\.
On the second line (not at the beginning) I have the following:
Record Counts: 333
I would like to open up the log file for today, compare the number with yesterday and send an email to my email address if it is not higher today than yesterday.
The record count should always increase in every log but sometimes it doesn't and as I said I'd like windows to send an email (via outlook?) to notify me so I don't have to keep checking each day.
Can anyone help me with the code necessary to:
Open the text file
Find the number in the text file
Email myself something through outlook
Any pointers would be great
tx
grd