Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Use VFP to monitor if EXE is running
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Miscellaneous
Thread ID:
01572163
Message ID:
01572182
Views:
72
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform