Solved

Time /Duration of an application

Posted on 2002-04-20
21
274 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
ScreenConnect 6.0 Free Trial

Want empowering updates? You're in the right place! Discover new features in ScreenConnect 6.0, based on partner feedback, to keep you business operating smoothly and optimally (the way it should be). Explore all of the extras and enhancements for yourself!

 
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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

778 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