Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Want to write batch script on the basis of system date and exit code

$
0
0

This is MY first question in this forum, Hope any one of you can fix the issue..

I have one log file containing the pattern as below

"abcd.job" (abcd.bat) Started 27/8/2014 5:00:00 AM "abcd.job" (abcd.bat) Finished 27/8/2014 5:07:07 AM Result: The task completed with an exit code of (0).

"abcd.job" (abcd.bat) Started 28/8/2014 5:00:00 AM "abcd.job" (abcd.bat) Finished 28/8/2014 5:07:07 AM Result: The task completed with an exit code of (0).

I will run the job on daily basis will check the status of job if the exit code of(0) then it will through a success mail, else it will through a failure mail.

So date and eixt code these things wants to check if matches then will through an mail.

Please help.


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>