Why is StartInfo (ProcessStartInfo) always empty?

前端 未结 4 1141
长情又很酷
长情又很酷 2021-01-18 05:45

According to MSDN:

If you did not use the Start method to start a process, the StartInfo property does not reflect the paramete

4条回答
  •  甜味超标
    2021-01-18 06:09

    You are still doing a GetProcess, thus it continues to work the same. The fact that you started it doesn't make a difference.

    Process.Start(...) returns the process that you started. I expect that if you check the StartInfo property on that, it will be populated.

提交回复
热议问题