Click to See Complete Forum and Search --> : Remote Automation or the likes


MikeDSaunders
October 15th, 2001, 09:53 AM
I need to run a program on a networked computer from my VB application, just something real simple – executing a command-line parameter and that’s it. I’m not sure how to go about doing this though, can someone tell what the best method would be, be it remote automation, DCOM, or something of the likes? Thanks.

Iouri
October 15th, 2001, 10:19 AM
if this program that you need to run is on the network drive you can use Shell command to run it

r = Shell("f:\abc.exe")

if this program is on the local drive then you can use winsock

Iouri Boutchkine
iouri@hotsheet.com

MikeDSaunders
October 15th, 2001, 04:53 PM
Thanks, but I guess I failed to mention that I need the app to run on the HOST computer not the computer that's executing the program, which is why I'm talking about COM and things a bit more advanced than shell. Any input on that? Thanks!

Cimperiali
October 16th, 2001, 05:22 AM
Go to
http://www.mvps.org/vbnet/
and search for
Q165101 HOWTO: Use Windows 95 or Windows 98 as a DCOM Server
It may provide some informations
...
;)

Special thanks to Lothar "the Great" Haensler, Tom Archer, Chris Eastwood, TCartwright, Bruno Paris, Dr_Michael
and all the other wonderful people who made and make Codeguru a great place.
Come back soon, you Gurus.

The Rater

surenpv
October 23rd, 2001, 01:15 AM
I think it is possible using RPC calls with sockets or named pipes. But that needs a program to be running on the HOST machine.
Please let me know if you find any othe solution for this.