473,401 Members | 2,125 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,401 software developers and data experts.

Log Processes from Task Manager

Hi,

I am trying to write a program that is able to track an log the usage
of a particular process (such as Excel.EXE) from within the task
manager. The basic information that I need is:

1. Who Started the Process
2. What time they finished using the process.

To get started I am looking for any code/ideas of how to extract the
process information from the task manager.

Any help would greatly be appreciated!

PowaGuy
NEW TO VB.net!
Nov 21 '05 #1
2 2998
"Powerguy" <ge******@hotmail.com> skrev i en meddelelse
news:79**************************@posting.google.c om...
To get started I am looking for any code/ideas of how to extract the
process information from the task manager.


You would use the System.Management namespace to extract the information
from WMI.

There's an MSDN magazine article on this here

http://msdn.microsoft.com/msdnmag/issues/02/05/WMIMan/

The System.Management namespace is documented here:

http://msdn.microsoft.com/library/en...management.asp

The WMI class you would need is Win32_Process, which is documented here:

http://msdn.microsoft.com/library/en...32_process.asp

/Jens
--
Jens Christian Mikkelsen
http://www.jcmikkelsen.dk

Nov 21 '05 #2
you could use the System.Diagnostics.Process class to get process
information as well.
http://msdn.microsoft.com/library/de...ClassTopic.asp

look at the Process.GetProcesses shared method - this returns an array of
currently running processes.

hope this helps..
Imran.

"Powerguy" <ge******@hotmail.com> wrote in message
news:79**************************@posting.google.c om...
Hi,

I am trying to write a program that is able to track an log the usage
of a particular process (such as Excel.EXE) from within the task
manager. The basic information that I need is:

1. Who Started the Process
2. What time they finished using the process.

To get started I am looking for any code/ideas of how to extract the
process information from the task manager.

Any help would greatly be appreciated!

PowaGuy
NEW TO VB.net!

Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Roger | last post by:
I would like to get a list of running processes on a remote machine. How is this possible via VB.Net? Is it possible? Can someone point me in the right direction. thanks, rog
15
by: Dirk Reske | last post by:
Hello, why doesn't this code work correctly? private int GetCpuUsage(Process proc) { DateTime time1,time2; TimeSpan timediff; double cpu1,cpu2,cpudiff;
1
by: Leonid | last post by:
Hello, How to get the list of running processes in VC++ (Similar to Task Manager->Processes window) Regards Leonid
1
by: Roger | last post by:
When looking through the list created by the System.Diagnositc.Process.GetProcesses and verifying it with the Task Manager Process list. There are items in the Task Manager Process list that are...
3
by: David | last post by:
All Using VB.Net how do I return all of the running processes, similar to the processes tab in Task Manager? Thanks
8
by: cj | last post by:
I know how to write code to find, kill and closeMainWindow on all processes but I really don't want to do that. I want work with applications not processes. As you know there are a lot more...
2
by: alexia.bee | last post by:
Hi All, I need to get all the IDs of specific process and kill all the instances of that process. Something like: // theArray get all the Excel proc IDs in the Task manager string theArray...
1
by: cyberpearl | last post by:
Hi I am doing a windows application in c#. When my application closing, i am doing hide my application by overriding form closing event. so its still running in task manager. I allowed one...
1
by: Bob | last post by:
Greetings, IF one wanted to get the memory utilization just like the windows task manager does .. what do you need to sum? .. if I add together all the processes I'm still short .. my snippet...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.