Command Line Processing

Shurik

Newcomer
Joined
Nov 29, 2003
Messages
7
Hi,

I have the following code to execute an application:

Code:
Dim NewProcess As Process = New Process
NewProcess.Start("<command>", "<args>")
...
more code here...

This brings up a Windows console window, does its stuff and disappears. However, I have two issues with this. First after the command is executed, it goes on straight to the next line of code, which I don't want to execute until the external program has finished running. Is there a way to halt it?
Second, the console window prints some text as the process goes on. Is there a way to make the console window not appear appear at all, and simple execute it "within" the form... outputting its text in some text field.

Second point isn't as critical as the first one, but would still make matters more elegant :)

Any advice appreciated!

Thanks
 
Back
Top