Dim pi As New ProcessStartInfo("cmd.exe")
pi.RedirectStandardOutput = True
pi.UseShellExecute = False required call to redirect streams
Dim p As Process = p.Start(pi)
p.WaitForExit()
MessageBox.Show(p.StandardOutput.ReadToEnd()) show what the application tried to print onto the console