How to shell execute a file in C#?

后端 未结 3 797
难免孤独
难免孤独 2020-12-29 17:30

I tried using the Process class as always but that didn\'t work. All I am doing is trying to run a Python file like someone double clicked it.

Is it possible?

<
3条回答
  •  清歌不尽
    2020-12-29 18:13

    You forgot proc.Start() at the end. The code you have should work if you call Start().

提交回复
热议问题