I need to open a command prompt & execute ij.bat
, which will take me to another prompt, where I can give command to connect to DB & later different sql statements. I was able to execute ij.bat
from the java program like
Process process = Runtime.getRuntime().exec("D:\\ij.bat");
But how to give the furthur set of commands through the java program?