How do I execute a .bat or .exe within my java program that is in a sub-folder within the main folder that holds my java program.
Runtime.getRuntime().exec("cmd /c start example.bat");
The code above works perfectly fine when the .bat is in the same folder as the java program. But if my program's .java and .class files were organized in a package (and the .bat would be in a separate folder), how would I call that bat program?