?
Solved

Time /Duration of an application

Posted on 2002-04-20
21
Medium Priority
?
299 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…
Suggested Courses

650 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