How to open a command prompt and input different commands from a java program -
i need open command prompt & execute ij.bat
, take me prompt, can give command connect db & later different sql statements. able execute ij.bat
java program
process process = runtime.getruntime().exec("d:\\ij.bat");
but how give furthur set of commands through java program?
you can use exec public process exec(string command) throws ioexception
also visit this link
Comments
Post a Comment