Defining a working directory for executing a program (C#)

后端 未结 2 1498
渐次进展
渐次进展 2020-12-11 17:40

I am currently trying to get an executable to be launched from a specific folder.

The code I have below crashes the application oddly enough:

Process         


        
2条回答
  •  北荒
    北荒 (楼主)
    2020-12-11 17:55

    You can't start an executable from a folder, if it is not there. You must copy your executable to this folder, and only after that you can start a Process for this executable.

提交回复
热议问题