杀进程

System.Diagnostics.Process[] processes;
processes = System.Diagnostics.Process.GetProcessesByName("EXCEL");
DateTime startTime;
if (processes != null && processes.Length > 0)
{
foreach (System.Diagnostics.Process p in processes)
{
p.Kill();

}
}

你可能感兴趣的:(Excel)