View Single Post

  #5 (permalink)  
Old 12-30-2004
Wilfried Wilfried is offline
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,112
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 !
Reply With Quote