Hi Jon,
Like everything in .NET, it's not too hard once you know which classes and namespaces to use. See this example:
http://www.vb-helper.com/howto_net_run_dos.html
Here's the heart of it:
' Set start information.
Dim start_info As New ProcessStartInfo(txtProgram.Text)
start_info.UseShellExecute = False
start_info.CreateNoWindow = True
start_info.RedirectStandardOutput = True
start_info.RedirectStandardError = True
' Make the process and set its start information.
Dim proc As New Process()
proc.StartInfo = start_info
' Start the process.
proc.Start()
' Attach to stdout and stderr.
Dim std_out As StreamReader = proc.StandardOutput()
Dim std_err As StreamReader = proc.StandardError()
' Display the results.
txtStdout.Text = std_out.ReadToEnd()
txtStderr.Text = std_err.ReadToEnd()
' Clean up.
std_out.Close()
std_err.Close()
proc.Close()
Best wishes,
Rod
[email protected]
Author of "Visual Basic 2005 Programmer's Reference"
http://www.vb-helper.com/vb_prog_ref.htm