How to open command prompt and run series of commands in it all by using Java Code or Java Application

116 Views Asked by At

I have searched alot found some similar questions and answers too on StackOverflow but nothing worked.

I'm creating an application in Java where I need to open command prompt and run series of lots of commands in that using Java code itself.

I am able to open the cmd.exe but how to run those commands inside the cmd using only Java Code.

Anyhelp would be appreciated :)

0

There are 0 best solutions below