首页  编辑  

关闭指定名称的进程

Tags: /C#/进程、线程处理/   Date Created:

using System . Diagnostics;

Process [] vProcesses = Process . GetProcessesByName( "iexplore" );

foreach ( Process vProcess in vProcesses)

      vProcess . CloseMainWindow();