PDA

Click to See Complete Forum and Search --> : Remote Program Activation


snowcat25
Feb 19th, 2001, 09:29 AM
I wish to execute another program from my VB program that is located on a remote computer in a peer-to-peer Windows 98 network. That's the easy part. My question is how do I get the remote program to run on the remote computer on which it is installed instead of running on my computer (the computer running my VB app)? This is necessary because the program I will be calling collects system information on the computer on which it is run, and I need the system information from the remote computer, not my own. Any assistance is greatly appreciated.

plenderj
Feb 19th, 2001, 10:41 AM
You would need another program also.

The other program would be run at windows startup, and would have a winsock connection listening.
Once a connection is established, (or whatever sort of protocol you wish to make), then it just Shell's the first application.

Something along those lines are what you should probably do.

- jamie

Brandito
Feb 19th, 2001, 03:03 PM
Yeah.. windows startup folder.

Or put its path in the Registry under RUN.
That will run when you log in.
Puting it under RunServices will run your app. before you log in... that is not good if you are needing to network!
Another way is to have the program write itself into the .INI files and such. Or have it schedule a time to run under a scheduling program like Norton Program Scheduler.

Those are some alternatives for getting your app. to run. Some trojan programs have found out even sneakier ways to launch them selves with out using those methods listed above. But that is what you will have to do.

I would be careful when creating a program that listens for connections. If you code it wrong someone could screw you. Make sure that your program wont crash your hosts computer if it gets funky input!

Feb 19th, 2001, 04:23 PM
Look in your windows help for the AT command, this is windows built in scheduler, one of the parameters you can pass it is the node for the application to execute on. It works well.

snowcat25
Feb 19th, 2001, 09:50 PM
Thanks for the assistance!