Simple VB Script

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".

Evner: Visual Basic

Se mere: vb this, dos on line, dos find, audit format, vb vb, vb n, e vb, VB, till, said, line-following, IS audit, fence, exp, DOS, output script, vbs output, runs, script schedule, time scheduler, windows command script, vbs windows, formatted, visual schedule, script script

Om arbejdsgiveren:
( 10 bedømmelser ) Flemington, United States

Projekt ID: #34671

1 freelancer byder i gennemsnit $50 på dette job


Please see PM for clarifaications

$50 USD in 2 dage
(6 bedømmelser)