I want to execute a batch file from a java program.
I am using the following command.
Runtime.getRuntime().exec(\"server.bat\");
Bu
You have to run "cmd.exe" with the arguments "/c" and "server.bat":
Runtime.getRuntime().exec(new String[] { "cmd.exe", "/c", "server.bat" } );