Need a VB Script that runs a DOS command, conman e, (the output of this command is attached) and checks the last line of the output. Last line is formatted as follows.
Schedule (Exp) (#XXXXX) on . Batchman LIVES. Limit: 99, Fence: 0, Audit Level: 1
In the above format, if I run "conman e" between 12:01AM to 2PM then the date is yesterday's date. If I run it between 2:01PM till midnight, then it is todays date.
with that said, I need the following.
When I run your .vbs script in the Windows Scheduler, find out the time I am running and then expect the DATE as I explained earlier; and keyword LIVES as well. If both satisfied then [url removed, login to view] "All is well" Else [url removed, login to view] "All is NOT well".