I am trying to start some bat file from
java code. On almost the same server (windows 2003 64 bit) which is STAGING environment, everything works fine, but on the Production environment, bat file is simple not started. Anybody has any idea (running out of it)?
Here is the code:
try {
log.info("Calling external command: ");
Process proc = Runtime.getRuntime().exec("cmd /C start D:\\start.bat");
proc.waitFor();
} catch (Exception e) {
log.error("Error:", e);
}
No exception is thrown.