Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Shut down another app
Message
 
To
07/10/1997 13:50:10
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00053567
Message ID:
00053576
Views:
22
>Is there a way to check for the presence of another
>running app and close it? I want to give my end users
>an exe that will download new versions of their
>systems but they keep forgetting to shut down the old
>version before they do it . This way ill close it
>FOR them.
>
>TIA
>Chris

Check the files download section for is_run.zip. That will help you solve the first half of the problem. The second half is much trickier. The Windows API has a function called TerminateProcess that will do it, but in order to get the necessary values, you'd have to call at least two other functions, one of which, CreateProcess, calls for a structure containing pointers to two other structures.

Much easier might be creating a DDE link between the download exe and the old systems. That way if an application was running, all you'd have to do is tell it to shutdown. Of course, the systems would have to be DDE enabled, and that would mean that they would have to be updated, etc.

George
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform