Solved

Time /Duration of an application

Posted on 2002-04-20
21
268 Views
Last Modified: 2010-05-02
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.
0
Comment
Question by:RanjiniPraba
  • 10
  • 4
  • 3
  • +3
21 Comments
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 6956258
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
 
LVL 12

Expert Comment

by:roverm
ID: 6956696
Take a look here for all tasks:

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

D'Mzzl!
RoverM
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 6957320
roverm, still alive?
0
 
LVL 12

Expert Comment

by:roverm
ID: 6957519
Yeppers! Cool huh?
But far too much time too little....
0
 

Author Comment

by:RanjiniPraba
ID: 6958044
hi roverm,
sorry,your solution doesnt work. it only gives the names of the processes, but not its duration.
thanks.
0
 
LVL 12

Expert Comment

by:roverm
ID: 6958154
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
 
LVL 12

Expert Comment

by:roverm
ID: 6972981
Any progress here ?
0
 

Author Comment

by:RanjiniPraba
ID: 6973534
did nor help Mr. roverm. sorry
0
 
LVL 12

Expert Comment

by:roverm
ID: 6973716
So, you still need another solution ?
Or did you solve it otherwise ?
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 6987105
I was thinking in a "possible" solution, but it would only works for excutables (com,exe,pif,bat).
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 12

Expert Comment

by:roverm
ID: 6990015
What's the status here ?
0
 
LVL 12

Expert Comment

by:roverm
ID: 7001989
Hello ?
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 7002054
Hi roverm, back in town?
0
 
LVL 12

Expert Comment

by:roverm
ID: 7002090
Yeppers! Never left actually....
Just way too much time too little...
0
 
LVL 12

Expert Comment

by:roverm
ID: 7004740
RanjiniPraba: Any progress here ?
Do you still need some help ?
Is your problem solved ? If so: How ?

D'Mzzl!
RoverM
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 7004760
mmm... zzzzzzzzzz.....
0
 

Author Comment

by:RanjiniPraba
ID: 7034510
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
 
LVL 12

Expert Comment

by:roverm
ID: 7034823
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
 
LVL 49

Expert Comment

by:DanRollins
ID: 7660603
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
 

Accepted Solution

by:
SpideyMod earned 0 total points
ID: 7755337
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now