How do I hide a console application user interface when using Process.Start?

后端 未结 4 1443
挽巷
挽巷 2021-02-14 19:59

I want to run a console application that will output a file.

I user the following code:

Process barProcess = Process.Start(\"bar.exe\", @\"C:\\foo.txt\")         


        
4条回答
  •  野的像风
    2021-02-14 20:58

    Check into ProcessStartInfo and set the WindowStyle = ProcessWindowStyle.Hidden and the CreateNoWindow = true.

提交回复
热议问题