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.
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")
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.
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. :)
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.
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.
Re: Run exe on server from remote machine
Use a web service, 1,000,000 times easier.