Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Starting An EXE Remotly
Message
De
15/05/2001 23:26:08
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00507633
Message ID:
00507678
Vues:
17
>Any odeas on how to launch an EXE which resides on
>another PC, so that it runs on that PC?

You didn't say if you want it to start on demand, or if it should start at the same time every day (e.g. overnight maintenance process). If it's the latter, you can make use of an available scheduling service.

If you want it to start on-demand, I don't think there's any way to have absolutely nothing running on the remote PC, then get it to start up a program. The remote PC must have some sort of "listening" process running, waiting for some sort of message.

One simple approach would be to create a launcher (listener) program that looks for the presence of a file in a certain folder. If you were to do it in Fox, it could simply start a timer, and each time it timed out you'd check for the existence of the file. If present, kill (or disable) the timer and start the main program; if not, keep waiting.

My understanding is that a simple timer waits efficiently i.e. does not hog a lot of CPU cycles. So, a Fox launcher would have a relatively large memory footprint, but not too much effect on CPU.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform