Process.StartInfo.WindowStyle problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Barry Frank

    Process.StartInfo.WindowStyle problem

    I am starting a process setting UseShellExecute to false and
    RedirectStardar dOutput 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?


  • Jon Skeet

    #2
    Re: Process.StartIn fo.WindowStyle problem

    Barry Frank <bfrank@reedtec h.com> wrote:[color=blue]
    > I am starting a process setting UseShellExecute to false and
    > RedirectStardar dOutput 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?[/color]

    What do you *want* it to do? Note that there's the "create no window"
    property, which may be what you want.

    --
    Jon Skeet - <skeet@pobox.co m>
    Pobox has been discontinued as a separate service, and all existing customers moved to the Fastmail platform.

    If replying to the group, please do not mail me too

    Comment

    • Barry Frank

      #3
      Re: Process.StartIn fo.WindowStyle problem

      Thanks Jon. I missed the CreateNoWindow property. It did exactly what I
      wanted it to do.

      "Jon Skeet" <skeet@pobox.co m> wrote in message
      news:MPG.19d3bc 8292b628c49896e 4@news.microsof t.com...[color=blue]
      > Barry Frank <bfrank@reedtec h.com> wrote:[color=green]
      > > I am starting a process setting UseShellExecute to false and
      > > RedirectStardar dOutput to true so that I can use[/color][/color]
      StandardOutput. ReadToEnd to[color=blue][color=green]
      > > 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?[/color]
      >
      > What do you *want* it to do? Note that there's the "create no window"
      > property, which may be what you want.
      >
      > --
      > Jon Skeet - <skeet@pobox.co m>
      > http://www.pobox.com/~skeet
      > If replying to the group, please do not mail me too[/color]


      Comment

      Working...