Posted By:
Nathan_Meyers
Posted On:
Thursday, July 19, 2001 07:29 PM
The Runtime.exec() method executes a command on the host machine - just as if you'd typed that command into the host's command interpreter. If you can't run that command by typing it into the DOS command window, then you can't run it by passing it to Runtime.exec(): there's no magic for making the command run on a different machine.
If you're looking for a way to run a command remotely, you need some sort of server running on the remote machine (a Web server, an RMI server, an ssh server, an rsh server, or whatever), and you need to run a client on your local machine that knows how to ask the remote machine for the required service.