Solved

Time /Duration of an application

Posted on 2002-04-20
21
280 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

 
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
 
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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

726 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