How to open a command prompt and input different commands from a java program

后端 未结 2 974
無奈伤痛
無奈伤痛 2021-01-23 07:57

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 stat

2条回答
  •  忘掉有多难
    2021-01-23 08:20

    You can use this exec public Process exec(String command) throws IOException

    Also visit This Link

提交回复
热议问题