Below is a working example of how to start a program, pass command line arguments and retrieve the output in VB .NET
Revised Answer - Posted 2 March 2013 9:25am EST:
Dim process As New Process
Try
' The program to be started by the Process Class:
Dim Disasm As String = "C:\Users\Mike\Downloads\DISASM\disasm.exe"
' The string parameter to be passed to the program:
Dim Arguments As String = "C:\Users\Mike\Downloads\DISASM\xxx.exe"
'
process.StartInfo.WindowStyle = ProcessWindowStyle.Hidden
process.StartInfo.CreateNoWindow = True
Process.StartInfo.UseShellExecute = False
Process.StartInfo.RedirectStandardOutput = True
Process.StartInfo.RedirectStandardError = True
process.StartInfo.FileName = Disasm
' The FullPathName of the file to be processed is passed as the argument:
process.StartInfo.Arguments = Arguments
process.Start()
Dim output As String = process.StandardOutput.ReadToEnd()
process.WaitForExit() ' Wait until the program has ended
Debug.WriteLine(output)
MsgBox("Done")
Catch ex As Exception
MsgBox(String.Concat(ex.Message, vbNewLine, vbNewLine, _
"Unable to Start: " & Disasm), _
MsgBoxStyle.Critical, _
"Starting " & Disasm)
End Try
Tested with Visual Basic .NET 2012