I have a scheduled job that runs on an XP machine. From time to time this job fails with an exit code other than "0". I want to write a vbscript that can run behind the job and get the "Last Result". If that result is not correct then I want it to kick of an email to me notifying me that the job failed.
Is this possible to do?
Try this: instead of your scheduled job, schedule a script similar to:
in strResult variable you can collect all info to e-mail...
Gives you the last result
This is how to access the TS via COM