close the command interpreter
<p>my requirement is the follwing.
I run the batch file using java code.
The batch file does the following</p>

<ol>
<li>one xml file using java and it takes some time.</li>
<li>After xml file is run the applet is displayed.</li>
<li>If the applet is closed manually then the command prompt will close.</li>
<li>I need to close the command prompt using the java</li>
</ol>

<p>my problem is that if i exceute taskill/im cmd.exe all others are also closed which i dont want</p>
