I am writing a VB app that constructs a command string which then needs to be launched in DOS and wait for the returned status. The equivalent in VB Script is to create a WSH and Run the command ie:
Dim cmdString
cmdString = "App.exe -flag1 inputArg"
Set objShell = CreateObject("WScript.Shell"
rval = objShell.Run(cmdString, 0, True)
I need to recreate this in a VB application. Any ideas?
Dino
Dim cmdString
cmdString = "App.exe -flag1 inputArg"
Set objShell = CreateObject("WScript.Shell"
rval = objShell.Run(cmdString, 0, True)
I need to recreate this in a VB application. Any ideas?
Dino