Geeks With Blogs
Gaurav Taneja Great dreams... never even get out of the box. It takes an uncommon amount of guts to put your dreams on the line, to hold them up and say, "How good or how bad am I?" That's where courage comes in.

private void CheckExcellProcesses()Process[] AllProcesses = Process.GetProcessesByName("excel");new Hashtable();int iCount = 0;foreach (Process ExcelProcess in AllProcesses)private void KillExcel()Process[] AllProcesses = Process.GetProcessesByName("excel");// check to kill the right process

 

{

 

ExcelProcess.Kill();

}

AllProcesses =

}

foreach (Process ExcelProcess in AllProcesses)if (myHashtable.ContainsKey(ExcelProcess.Id) == false)null;

 

 

{

 

myHashtable =

 

 

{

myHashtable.Add(ExcelProcess.Id, iCount);

iCount = iCount + 1;

}

}

 

{

 

 

Posted on Monday, June 29, 2009 5:36 AM .Net | Back to top


Comments on this post: Check & Kill Process

No comments posted yet.
Your comment:
 (will show your gravatar)


Copyright © Gaurav Taneja | Powered by: GeeksWithBlogs.net