CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Oct 2001
    Posts
    14

    Remote Automation or the likes

    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.


  2. #2
    Join Date
    May 2000
    Location
    New York, NY, USA
    Posts
    2,878

    Re: Remote Automation or the likes

    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
    [email protected]
    Iouri Boutchkine
    [email protected]

  3. #3
    Join Date
    Oct 2001
    Posts
    14

    Re: Remote Automation or the likes

    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!


  4. #4
    Join Date
    Jul 2000
    Location
    Milano, Italy
    Posts
    7,726

    Re: Remote Automation or the likes

    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
    ...at present time, using mainly Net 4.0, Vs 2010



    Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
    all the other wonderful people who made and make Codeguru a great place.
    Come back soon, you Gurus.

  5. #5
    Join Date
    Oct 2001
    Posts
    1

    Re: Remote Automation or the likes

    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.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured