Start a new process and Killing the current process

后端 未结 5 1396
无人共我
无人共我 2020-12-31 04:15

I want to start a new process B.exe from the current executing process A.exe.

And as soon as B.exe is launched I want to kill A.exe (the current executing process).<

5条回答
  •  长情又很酷
    2020-12-31 04:40

    If you're falling into this quest of starting a process, and kill your own process after, use Environment.Exit(0), not Application.Exit().

提交回复
热议问题