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

Taidot: Visual Basic

Näytä lisää: 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

Tietoa työnantajasta:
( 10 arvostelua ) Flemington, United States

Projektin tunnus: #34671

1 freelanceria on tarjonnut keskimäärin %project_bid_stats_avg_sub_23% %project_currencyDetails_sign_sub_24% tähän työhön


Please see PM for clarifaications

$50 USD 2 päivässä
(6 arvostelua)