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 ( );
   }
  }

posted on 2007-06-20 21:55  袁礼定  阅读(2091)  评论(0编辑  收藏  举报