Start a new process and Killing the current process

后端 未结 5 1383
无人共我
无人共我 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:43

    If you just want to close the current process you should be able to just call Application.Exit rather than looping through and closing processes.

提交回复
热议问题