title: command to close the batch file in java
body: <pre><code>Runtime rt = Runtime.getRuntime();
  Process pr = rt.exec(command);
  </code></pre>
  
  <p>I am running the batch file by means of the above lines in java.
  The command prompt will be opened.
  I need to close the command prompt using java code</p>
  
  <p>Thanks</p>