I want to execute a batch file from a java program.
I am using the following command.
Runtime.getRuntime().exec(\"server.bat\");
Bu
You can try it with Desktop if supported (Java 1.6)
File file = new File("server.bat"); Desktop.getDesktop().open(file);