[ad_1]
Process aProcess = Runtime.getRuntime().exec("cmd"); //you can pass any process here
you can also read the output of this program.
InputStream is = aProcess.getInputStream();
Ps: You can pass any process, along with the arguments, but you can’t pass things like >>, 2> or | or wild cards like *
— from the comments
7
[ad_2]
solved How to start an external program inside a java program [duplicate]