Time /Duration of an application

hi,
it is possible to get the names of the applications that are running in the system. is it possible to get the duration of these applications, i.e the time for which it is running.
RanjiniPrabaAsked:
Who is Participating?
 
SpideyModConnect With a Mentor Commented:
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0
 
Anthony PerkinsCommented:
Please maintain this open question:
Compact database Date: 01/28/2002 05:07AM PST  
http://www.experts-exchange.com/jsp/qShow.jsp?ta=visualbasic&qid=20260252

Experts spent their valuable time helping you out (for I may add, 15 points), now it is time to do your part.

Anthony
0
 
rovermCommented:
Take a look here for all tasks:

http://www.thescarms.com/vbasic/RunningProcs.asp

D'Mzzl!
RoverM
0
Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

 
Richie_SimonettiIT OperationsCommented:
roverm, still alive?
0
 
rovermCommented:
Yeppers! Cool huh?
But far too much time too little....
0
 
RanjiniPrabaAuthor Commented:
hi roverm,
sorry,your solution doesnt work. it only gives the names of the processes, but not its duration.
thanks.
0
 
rovermCommented:
Yes, but maybe you can go from there.
If you want to monitor just one (or more) application(s), first set a base, then monitor the tasklist
every minute orso.

D'Mzzl!
RoverM
0
 
rovermCommented:
Any progress here ?
0
 
RanjiniPrabaAuthor Commented:
did nor help Mr. roverm. sorry
0
 
rovermCommented:
So, you still need another solution ?
Or did you solve it otherwise ?
0
 
Richie_SimonettiIT OperationsCommented:
I was thinking in a "possible" solution, but it would only works for excutables (com,exe,pif,bat).
0
 
rovermCommented:
What's the status here ?
0
 
rovermCommented:
Hello ?
0
 
Richie_SimonettiIT OperationsCommented:
Hi roverm, back in town?
0
 
rovermCommented:
Yeppers! Never left actually....
Just way too much time too little...
0
 
rovermCommented:
RanjiniPraba: Any progress here ?
Do you still need some help ?
Is your problem solved ? If so: How ?

D'Mzzl!
RoverM
0
 
Richie_SimonettiIT OperationsCommented:
mmm... zzzzzzzzzz.....
0
 
RanjiniPrabaAuthor Commented:
hi all, your solution didnot help me. but i myself found a solution.
it is like, i enumerate through all the process, now what i do is i obtain the process id through the window handle property. then pass this process id to openProcess api to get a handle to the process, then, i pass this handle to the api getprocesstimes with the hProcess, and for empty file time structures. in which there is creation time variable with the filetime structure. i convert the file time structure to system time structure, thus obtaining the process creation times. then i subtract the creation time from the current time thus obtaining the duration.
anyway, thanks for your help.
thanks ee.
0
 
rovermCommented:
Great to see that your problem is solved!

In my opinion the best thing you can do is ask a moderator to PAQ this question and refund your question-points.
You can do this by posting a question in CS with an explanation and a link to this question.

D'Mzzl!
RoverM
0
 
DanRollinsCommented:
RanjiniPraba, an EE Moderator will handle this for you.
Moderator, my recommended disposition is:

    Refund points and save as a 0-pt PAQ.

DanRollins -- EE database cleanup volunteer
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.