检测过程已在Windows中使用C#.NET运行 [英] Detecting a Process is already running in windows using C# .net

查看:206
本文介绍了检测过程已在Windows中使用C#.NET运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何检测一个进程在Windows任务管理器下已经运行?我想获得的内存和CPU的使用为好。

How do I detect if a process is already running under the Windows Task Manager? I'd like to get the memory and cpu usage as well.

推荐答案

你有没有调查过的System.Diagnostics.Process类。

Have you looked into the System.Diagnostics.Process Class.

这篇关于检测过程已在Windows中使用C#.NET运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆