Im trying to start another application from within my vb.net program using
the process class. i want to start it, capture the stdout and stderr and
print them to a textbox.
I get something when i run ipconfig, but nothing when i run the command to
start nasm.
heres what it looks like:
Dim myProcessStartInfo As New ProcessStartInfo("nasm.exe") 'this is
the correct command
myProcessStartInfo.Arguments = "-h" 'just
want to print out the help
myProcessStartInfo.UseShellExecute = False
myProcessStartInfo.RedirectStandardOutput = True
myProcess.StartInfo = myProcessStartInfo
myProcess.Start()
TextBox1.Text = myProcess.StandardOutput.ReadToEnd
like i said, if i run ipconfig, it works great...but anything else produces
nothing.
I've stepped through it, and im getting an empty string... bu t when i do
the same thing in the command window, im getting the correct info.
i have tried it with redirecting stderr, with the same result.
any ideas?
thanks
patrick