View Single Post

  #4 (permalink)  
Old 12-30-2004
Anonymous Anonymous is offline
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
The code in C#

This was an excellent idea.
I needed the same for my car navigation project, but it is written in C#, so I will post this for you:

Code:
Process[] procs;
procs = Process.GetProcessesByName("MapPoint") ;
if(procs.Length > 0)
{
	for(int i=0;i<procs.Length;i++)
	{
		procs[i].Kill() ;
		procs[i].WaitForExit();
	}
}
Reply With Quote