Process.StartInfo.WindowStyle problem

  • Thread starter Thread starter Barry Frank
  • Start date Start date
B

Barry Frank

I am starting a process setting UseShellExecute to false and
RedirectStardardOutput to true so that I can use StandardOutput.ReadToEnd to
get the "screen" output of a command line program. When I do this the
WindowStyle property seems to be ignored and is always "normal".
Is this the correct behavior when using UseShellExecute = false?
 
Barry Frank said:
I am starting a process setting UseShellExecute to false and
RedirectStardardOutput to true so that I can use StandardOutput.ReadToEnd to
get the "screen" output of a command line program. When I do this the
WindowStyle property seems to be ignored and is always "normal".
Is this the correct behavior when using UseShellExecute = false?

What do you *want* it to do? Note that there's the "create no window"
property, which may be what you want.
 
Thanks Jon. I missed the CreateNoWindow property. It did exactly what I
wanted it to do.
 
Back
Top