5774 shaares
void runExternalCommand() {
String runCmd = "cmd /c start \"\" ffmpeg --help";
try {
Runtime.getRuntime().exec(runCmd);
}
catch(IOException e) {
println("runExternalCommand: IOException:" + e);
}
}
opening in new window or as supbrocess:
https://stackoverflow.com/questions/615948/how-do-i-run-a-batch-file-from-my-java-application/616014#616014