Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to detect an EXE is currently in Use
Message
 
 
To
02/11/2009 07:30:00
Hong Yew
People Quest
Malaysia
General information
Forum:
Visual FoxPro
Category:
Client/server
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01432651
Message ID:
01432654
Views:
110
There're many ways to prevent the second instance of application from running. The simplest one and least reliable is to check if application with the same Caption is already running http://www.levelextreme.com/Report.aspx?Session=34506835374E666E5A6A633D20734F734A62465236742F6839614C73707661696D6D4B4C393456646B666C5048
The better way is to use Windows Events as shown in http://www.levelextreme.com/Report.aspx?Session=546A76416F5931775343303D205574476238364F365147393046596757787A655075536E68372F4F43505A452B

For externall applications check http://www.berezniker.com/content/pages/visual-foxpro/check-if-exe-running-and-optionally-terminate-it

>
>Occasionally, user has already launch the EXE and will launch another copy
>
>I want to be able to prevent a user from opening more than one instance of my app EXE.
>
>Please advise if there is an easy way to detect an VFP EXE has been launched and prevent user from starting the app the 2nd time.
>
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform