Hi,
or even more simple:
Code:
Process[] processes = Process.GetProcessesByName("MapPoint");
foreach (Process proc in processes)
proc.Kill();
I also dont think you have to use WaitForExit because the process is killed as it will do same as task manger.
However be aware that if a user has started an instance of mappoint.exe this one is killed also !