[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 113
  • Last Modified:

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?

note:

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

Motaz
0
Motaz
Asked:
Motaz
  • 3
1 Solution
 
DrDelphiCommented:
I have an example that should help you on my website:

http://www.drdelphi.com/delphi/right/tips/oneinstance.htm



Good luck!!
0
 
MadshiCommented:
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.
0
 
DrDelphiCommented:
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:

http://www.drdelphi.com/delphi/right/tips/findwindow.htm




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


http://www.drdelphi.com/delphi/right/tips/ewindows.htm


(that's the last one, promise!)


0
 
MotazAuthor Commented:
Thanks it works.

Madshi see my new quesion (Closing another application)

Motaz
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now