Hi,
import java.io.*;
class Visuals{
public static void main(String arg[]){
try{
String command = "cmd /C start C:/Visuals/VisualTimeSeries081308Ratnesh/VisualTimeSeries081308Ratnesh/bat/demo/StartVisTsDataCenterMySql-log.bat";
Runtime rt = Runtime.getRuntime();
Process pr = rt.exec(command);
//pr.destroy();
}catch (IOException e) {
e.printStackTrace();
}
}
}
The above code works fine if the batch file is present in local machine.
I need to run the batch file that is present in the remote machine from the above code.
How can I develop connection with the remote machine ?
I just have the IP address of the remote machine.
Please help me. Thanks in advance,