catch (Exception ex)
{
}
finally
{
System.Diagnostics.Process[] prs = System.Diagnostics.Process.GetProcesses();
foreach (System.Diagnostics.Process proces in prs)
{
if (proces.ProcessName.ToUpper() == "EXCEL")
{
proces.Refresh();
if (!proces.HasExited)
proces.Kill();
}
}
}
}
Saturday, February 13, 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment