Test if a specified App exists or not?

I want to test if some application exits or not for, and I want the application to test is there an instance of it already exists in memory or not?


All applications I want to know if it is exists in memory (Running) is written by Delphi.

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

I have an example that should help you on my website:


Good luck!!

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Hi Motaz, I'm not sure what you mean. Does your application A wants to know only if there is already another instance of A running? Then DrDelphi has the right answer for you. But if your application A wants to know if the applications B and C are already running then you should download the free unit "enumStuff.pas" from my homepage (works only for D4 and D5) and use the function GetProcessList.
About your first question: What do you mean with "I want to test if some application exits"? Do you mean, you want to know whether it is installed or not? Or what?

Regards, Madshi.
  My example doesn't necessarily have to be used to prevent multiple instances... I could just as easily look for an instance of Word (or anything else for that matter. Another example would be:


come to think of it, you *could* use this example as well...


(that's the last one, promise!)

MotazAuthor Commented:
Thanks it works.

Madshi see my new quesion (Closing another application)

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.