标签:
源码:
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; namespace kill_mmdrv { class Program { static void Main(string[] args) { KillProcessesByName("mmdrv"); } /// <summary> /// /// </summary> /// <param name="processName"></param> private static void KillProcessesByName(string processName) { Process[] processes = Process.GetProcessesByName(processName); // 获取程序名为processName的所有进程 if (processes.Length > 0) { foreach (var process in processes) { if (!process.HasExited) { process.Kill(); } } } } } }
下载地址:
http://files.cnblogs.com/files/dehai/kill_mmdrv.rar
loadrunner agent 中删除失效的mmdrv进程
标签:
原文地址:http://www.cnblogs.com/dehai/p/5099620.html