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).<
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.