Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Use VFP to monitor if EXE is running
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Divers
Thread ID:
01572163
Message ID:
01572182
Vues:
74
>We have an EXE running on the server that consumes MSMQ messages that we use to update out VFP tables. I'd like to run a seperate EXE to make sure the first one is running. Can I do that with VFP?

There are windows API calls you can make to get a handle to a process based on its title (FindWindow). But that only tells you the app is in memory, not necessarily running (it could have crashed and is currently showing some error dialog). An easier way to do this would be to just write to a table or file at regular intervals and have your monitor app. check to make sure it has been updated within some period of time.
-Paul

RCS Solutions, Inc.
Blog
Twitter
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform