KillProcess ( "outlook" );
private void KillProcess ( string processName ) { System.Diagnostics.Process[] procs = System.Diagnostics.Process.GetProcessesByName ( processName );
foreach ( System.Diagnostics.Process procCur in procs ) { procCur.Kill ( ); procCur.Close ( ); } }
|
请发表评论