Originally posted by Michael Hildner:
Is it possible to use Runtime.getRuntime().exec... to execute a batch file on win32? Works for executables, can't seem to launch a batch file.
You may try this --
Runtime.getRuntime().exec("cmd /K start run.bat");
This worked for me. You may use /K or /C options. Replace run.bat with your batch filename.
A batch file is interpreted by the command interpreter.
Savithri