如何使用?"KillProcess ( "outlook" );"
程式碼
private void KillProcess ( string processName ) { System.Diagnostics.Process[] procs = System.Diagnostics.Process.GetProcessesByName ( processName ); foreach ( System.Diagnostics.Process procCur in procs ) { //procCur.CloseMainWindow(); procCur.Kill ( ); procCur.Close ( ); } }
沒有留言:
張貼留言