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

android - MPAndroidChart - How to add Annotations or images to the chart -

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

firefox - Where is 'webgl.osmesalib' parameter? -