close a particular command prompt
<p>I have opened a commnad prompt using java program
and another command prompt manually. Now my requirement is that i need to close the command prompt that i have opened by java program using the program. </p>

<p>I tried to close this by giving  rt.exec("taskkill /IM cmd.exe");</p>

<p>But the problem is that the command prompt that i have opened manually is aslo closed which i dont want.</p>

<p>Help needed.
Thanks in advance</p>
