Click to See Complete Forum and Search --> : Command Prompt execute on Remote Server


draghuna
September 6th, 2005, 12:50 PM
I am trying to execute a DOS command on a remote server from my local machine using my application. I used this app to currently work on my local machine and it works fine. Is there any property we can specify to run this command on a remote server and get the output. I do have all access permissions required on the remote server.

System.Diagnostics Process helps me out to execute this command on my local machine. Is there any other property through which I could specify the machine name and execute what I need on the remote machine.

-DD

jhammer
September 6th, 2005, 01:13 PM
You can do it with Remoting.
Build a server application, which has a class with methods that execute stuff in command line.
Register the class for remoting.
In the other computer run a client, which uses the server class and call the methods.

This should be very easy to implement once you figure out how remoting works.