PDA

View Full Version : Instances...



Voltrox
16-03-2007, 01:10 AM
Hello.

I know how to check if a process is running, and how to terminate it, but, how do I determine how many instances of that process are running?

Thank you.

seiferalmasy
16-03-2007, 03:05 AM
well i was lazy actually, i had piece of code which allowed only 1 instance and since then I have nice add on pack freeware which only allows 1 instance of a program, simply by dropping a component on a form.

pack is called>>GI components, another LMD.

I know you asked specifically for how to know how many processes, but thought i mention that:)

Voltrox
06-04-2007, 05:44 PM
BUMP.

savage
06-04-2007, 06:17 PM
I think you need to provide more information. Do you need to know how many times the application has been started from within the application or by getting a process list?

In either case, use Google and Type in "Delphi Process Instance" ( without the quotes ) and you should find something.

Voltrox
06-04-2007, 06:44 PM
No, I wouldn't run the application from the Delphi application.

I just want to, for example, check how many instances of notepad are open.

savage
06-04-2007, 06:48 PM
Search for "Delphi Process List" then