title: Enter commands in the command prompt after it's been opened in Java?
body: <p>I would like to know how to enter commands into the cmd.exe (command prompt window) , after its been opened?         </p>
  
  <p>I have the code below to open cmd.exe:                </p>
  
  <pre><code>Runtime rt= Runtime.getRuntime(); 
  Process process= rt.exec("cmd.exe /c start cd c:\\ExecutionSDKTest_10.2.2");
  </code></pre>
  
  <p>But after it's been opened, I'd like to enter "ant compile" or any line, how do I do that??</p>