Okay, cool -- We're half way there -- I need to check that output to see if a string exists.
The output will be differnet each time but there will be a status line which I need to check for.
Main Topics
Browse All TopicsI need to write a VBScript which will run an external command line EXE and trap the console output form this 3rd party tool. Depending on the output, I need to add a registry key or not.
How would I go about this?
Thanks!
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
You should supply an example output for both statuses and which you want to parse them for.
Nonetheless, here's an example of searching for a string within a string:
Private Sub Form_Load()
'search "my string test" for "string".. will return true
If StringFind("my string test", "string") = True Then
Call MsgBox("Found string.")
End If
'search "my string test" for "no".. will return false
If StringFind("my string test", "no") = True Then
Call MsgBox("Found string.")
End If
End Sub
Private Function StringFind(ByVal strSearchIn As String, ByVal strSearchFor As String) As Boolean
If InStr(1, strSearchIn, strSearchFor, vbTextCompare) > 0 Then
StringFind = True
End If
End Function
Business Accounts
Answer for Membership
by: zzzzzoocPosted on 2004-10-07 at 16:05:46ID: 12254500
Dim objWShell, objWExec, strOutput l")
Set objWShell = CreateObject("WScript.Shel
Set objWExec = objWShell.Exec("ping 127.0.0.1")
strOutput = objWExec.StdOut.ReadAll()
Call MsgBox(strOutput)
Set objWExec = Nothing
Set objWShell = Nothing