Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is an app running?
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Is an app running?
Miscellaneous
Thread ID:
00160151
Message ID:
00160151
Views:
55
Hi -

I am working on a VFP5 project that uses an EXE written in Visual Dialog Script (sim to VB I think....). Per Dragan's suggestion, I store this EXE in the memo field of a VFP table, and then copy it out to the hard drive to run it. This particular EXE could take a few hours to run, so I need to figure out the best way to get rid of it when it has finished running. I am thinking of checking (and erasing if it exists and isn't running) this in 3 places... when the user closes the form that created it, when they close the application and when they open the application.

I am pretty satisfied w/this method, but the question is what is the BEST way to check to see if the application is still running? I've thought of a few kludges (try to delete it, and trap the error or have the external app write a .txt file to the hard drive when it is finished), but I know there must be a better way. I'm thinking this has something to do with the Windows API. Am I on the right track?

TIA -
--ellen
ellen whitney
EPS Software Corp
Next
Reply
Map
View

Click here to load this message in the networking platform