Results 1 to 7 of 7

Thread: Run exe on server from remote machine

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2005
    Posts
    4

    Run exe on server from remote machine

    I have a vb.net program that runs on a client machine. It connects to foxpro tables on a server (Server has another application that also uses these tables). On the server I have a small FoxPro exe that updates some tables with values I pass to it from my .net prg and it logs the changes made to the system.

    I want to be able to execute from the client machine the FoxProUpdate.exe program that resides on the server and have it process on the server not on the remote machine.

    I can get it to execute on the client machine but not on the server. Both machines have the appropriate permissions to communicate with each other.

    Is this possible?

    Thanks.
    Last edited by gking; Sep 13th, 2005 at 01:14 AM. Reason: I didn't explain the problem correctly.

  2. #2
    Fanatic Member uniquegodwin's Avatar
    Join Date
    Jul 2005
    Location
    Chennai,India
    Posts
    694

    Re: Run exe on server from remote machine

    Yes it is possible,,,
    If you can get it execute on the client machine by giving a command from server,then It isnt going to be very hard to execute on the server too.
    Just let the client to send a command like "$#execute#program#name$@#"...
    When the server recieves that command..
    In the server program...use ..process.start("App.exe")
    Godwin

    Help someone else with what someone helped you!

  3. #3

    Thread Starter
    New Member
    Join Date
    Sep 2005
    Posts
    4

    Re: Run exe on server from remote machine

    I can only get the exe to run locally on either of the machines. I can't get it to run on 1 machine from the other.

    Thanks for your help.

  4. #4
    Fanatic Member uniquegodwin's Avatar
    Join Date
    Jul 2005
    Location
    Chennai,India
    Posts
    694

    Re: Run exe on server from remote machine

    One easy way to do it is by mapping the drive to that other computer and then executing that file.
    Godwin

    Help someone else with what someone helped you!

  5. #5

    Thread Starter
    New Member
    Join Date
    Sep 2005
    Posts
    4

    Re: Run exe on server from remote machine

    I need to start the exe programatically to start when the user kicks it off. I have a mapped drive to the folder with the program in it but it still doesn't work.
    The program has to run on the server and have nothing to do with the remote that called it.

    Thanks.

  6. #6
    Lively Member
    Join Date
    Sep 2002
    Posts
    77

    Re: Run exe on server from remote machine

    you probably need to write a VB.net service to run on the server. then pass a message from the client app to the server service useing either a file or sockets. the service on the server could then run the EXE when the client requested it to.

  7. #7
    Code Monkey wild_bill's Avatar
    Join Date
    Mar 2005
    Location
    Montana
    Posts
    2,993

    Re: Run exe on server from remote machine

    Use a web service, 1,000,000 times easier.

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