hi all,
I cannot understand why I cannot visualize error in richtextbox.text reported in dos shell.
this is my example code:
vb.net Code:
Dim start_info As New ProcessStartInfo("cmd.exe") start_info.UseShellExecute = False start_info.CreateNoWindow = True start_info.RedirectStandardOutput = True start_info.RedirectStandardError = True start_info.RedirectStandardInput = True Dim proc As New Process() proc.StartInfo = start_info proc.Start() proc.StandardInput.WriteLine("cd|") proc.StandardInput.close Dim std_out As StreamReader = proc.StandardOutput() Dim std_err As StreamReader = proc.StandardError() RichTextBox1.Text = std_out.ReadToEnd() + std_err.ReadToEnd() std_out.Close() std_err.Close() proc.Close()
I should visualize in richtextbox1.text error message "the syntax of the command is incorrect" meanwhile I don't see anything.
can someone help me please?
thanks in advanced
gio




Reply With Quote