C# 结束Execl进程
作者:互联网
System.Diagnostics.Process[] process = System.Diagnostics.Process.GetProcessesByName("Excel"); foreach (System.Diagnostics.Process p in process) { if (!string.IsNullOrEmpty(p.ProcessName)) { try { p.Kill(); } catch { } } }
标签:Execl,process,string,C#,System,Process,Diagnostics,进程 来源: https://www.cnblogs.com/gisoracle/p/15592770.html