Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Starting and stopping .exe frequently
Message
De
25/07/2012 15:36:33
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01549253
Message ID:
01549272
Vues:
54
I would take a different approach. Create a service that monitors the folder for a file. There is a VFP Solution Sample that shows how to hook into Windows Events and watch for the file to be added to the folder. That way, the application is always available, but sits idle until the event fires.

>I need to process an XML file(s) sent by an external application. I can make the external application drop the XML files in a folder and have a VFP with a timer to pick up these files. Or I can make the external program to automatically run a VFP application and pass it the name of the XML. The latter approach has advantage over the timer program: the timer program could crash and need to be restarted.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform