Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2884
  • Last Modified:

Retreiving memory usage using WMI

Hi,

I want to write an VB / .Net application using WMI that would retreive me the memory usage and the cpu usage of a given process at a given point of time.

I tried many WMI classes like Win32_Process, Win32_OperatingSystem etc but was not able to get a solution.

Can anyone help me in this?

Thanks In Advance

Sriram.
0
sansoftura
Asked:
sansoftura
2 Solutions
 
PreachDotNetCommented:
0
 
mpemberton5Commented:
This is an example in C#, but should give you what you are looking for:
http://www.codeproject.com/csharp/wmi.asp

Also, check out Emmet Gray's fantastic program in VB.NET.  You might benefit from this the most:
http://home.hot.rr.com/graye/AdminTools.htm
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now