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

Popular posts from this blog

c++ - What does MSC in "// appease MSC" comments mean? -

javascript - Add class to another page attribute using URL id - Jquery -

IF statement in MySQL trigger -