Peruttu

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 line, dos find, audit format, vb n, e vb, vb, till, said, is audit, fence, exp, dos, output script, vbs output, runs, script schedule, time scheduler, windows command script, vbs windows, formatted, visual schedule, script simple, attached script, format simple

About the Employer:
( 9 reviews ) Flemington, United States

Projektin tunnus: #34671

1 freelanceria on tarjonnut keskimäärin 50 $ tähän työhön

Nortus

Please see PM for clarifaications

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