Task Scheduler

Derek

New member
Joined
Nov 12, 2007
Messages
1
Programming Experience
5-10
I don't know if this is the correct thread to ask this but I am required to create an application wherein I check the Windows Scheduled Tasks log and check for failed tasks and then send email notifications.

What I had in mind was to create a windows service using the FileSystemWatcher class so that everytime the log file is edited I could capture that event and check for failed tasks. This was to make it as real time as possible. The problem is Scheduled Tasks log does not trigger the OnChanged event of Filesystemwatcher class. I did try it with other text files and it worked.

The file I mentioned is the SchedLgu.txt. This can be found in the root windows directory (Windows 2000, XP, Vista).

Any ideas or workaround? Or is this really not possible to do...

Thanks...
 
Back
Top