|
-
Feb 19th, 2001, 10:29 AM
#1
Thread Starter
New Member
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.
-
Feb 19th, 2001, 11:41 AM
#2
Retired VBF Adm1nistrator
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
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
-
Feb 19th, 2001, 04:03 PM
#3
Lively Member
true dat
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, 05:23 PM
#4
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.
-
Feb 19th, 2001, 10:50 PM
#5
Thread Starter
New Member
Thanks for the assistance!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|