Run interactive process inside already-running console application without opening new window

前端 未结 1 1732
挽巷
挽巷 2020-12-22 15:40

I realize this looks like a lot of other questions out there, but I looked at all of them for hours and never found the real answer I needed, so hear me out:

This is

1条回答
  •  借酒劲吻你
    2020-12-22 15:53

    Simple: ProcessStartInfo.UseShellExecute=false. That's it! (I know, I couldn't believe it myself).

    After hours of trying all sorts of things, this is what worked for me - without even setting CreateNoWindow=true! Also, at the end of it all, I did find this MSDN post that confirms what I found out. Go figure!

    0 讨论(0)
提交回复
热议问题