Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Starting An EXE Remotly
Message
From
15/05/2001 23:26:08
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00507633
Message ID:
00507678
Views:
16
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform