How to start Process hidden?

前端 未结 4 1599
心在旅途
心在旅途 2020-12-01 14:19

I start a Console Application via ProcessStartInfo and process.Start(). I want to hide the black window. Here\'s my code:

string output = \"\";
//Setup the          


        
4条回答
  •  眼角桃花
    2020-12-01 14:44

    Try This:

    startInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
    

提交回复
热议问题