Voca Posted November 5, 2003 Posted November 5, 2003 Hi out there, Due to some - let's 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! Quote
*Experts* mutant Posted November 5, 2003 *Experts* Posted November 5, 2003 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. Quote
Voca Posted November 5, 2003 Author Posted November 5, 2003 Wow, I did not expect any answers until tomorrow!!!:D Btw it works. Many thanks Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.