Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

verify if application is already running 1

Status
Not open for further replies.

pdtit

Technical User
Nov 4, 2001
206
BE
Hello,

I've used the Shell command behind the onclick-property of a form to open the windows calculator as follows :

shell (c:\windows\system32\calc.exe)

and it works fine.

However, everytime I click on this button, it opens another calculator.

Does anyone know any piece of code to check if an application is already open, and if so, go back to the one already open and not starting a new one ??

Regards,

Peter
 
You might try a ShellWait function. I think this might cause Access to pause while the calculator is running and return control only when the calculator is closed. Have a look at and see if this looks promising.

AvGuy
 
AvGuy,

WOW, that's fast !!!

You showed me the right direction.

I'm back on track now, one star's for you.

Regards,

Peter
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top