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:
  1. Dim start_info As New ProcessStartInfo("cmd.exe")
  2. start_info.UseShellExecute = False
  3. start_info.CreateNoWindow = True
  4. start_info.RedirectStandardOutput = True
  5. start_info.RedirectStandardError = True
  6.  start_info.RedirectStandardInput = True
  7.  
  8. Dim proc As New Process()
  9. proc.StartInfo = start_info
  10. proc.Start()
  11.  
  12. proc.StandardInput.WriteLine("cd|")
  13. proc.StandardInput.close
  14.  
  15. Dim std_out As StreamReader = proc.StandardOutput()
  16. Dim std_err As StreamReader = proc.StandardError()
  17.  
  18. RichTextBox1.Text = std_out.ReadToEnd() + std_err.ReadToEnd()
  19.  
  20.  std_out.Close()
  21.  std_err.Close()
  22.  
  23. 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