刪除Excel處理程序方式
//先把EXCEL處理程序都移除() String PName = "Excel".ToUpper(); System.Diagnostics.Process[] processes = System.Diagnostics.Process.GetProcessesByName(PName); foreach (System.Diagnostics.Process process in processes) { process.Kill(); }
刪除Excel處理程序方式
//先把EXCEL處理程序都移除() String PName = "Excel".ToUpper(); System.Diagnostics.Process[] processes = System.Diagnostics.Process.GetProcessesByName(PName); foreach (System.Diagnostics.Process process in processes) { process.Kill(); }
有一些很重要的檔案不想隨便讓人打開
當然要密碼保護一下了!!