Getting process information from taskmanager

Voca

Well-known member
Joined
Nov 3, 2003
Messages
75
Location
Germany
Hi out there,

Due to some - lets call it arguing - with a costumer I need to know how to recieve information of a process whose name or whose PID is known using VB.net.
The data, a timestamp, usage of memory and CPU-time should be written in a spcified file. My Problem is: how do I get these information from the taskmanager(Timestamp is easy as I create it by myself)?

Looking forward to your replies and many thanks in advance

Voca

Oh, I almost forgot: If this is not the correct forum, please tell me where to post!
 
Look into the System.Diagnostics.Process class. You will be able to retrieve the process by its ID using GetProcessByID method of that class. Process class will also show you various info like the one you want.
 
Back
Top