title: use root cmd window to execute commands in new cmd window
body: <p>i'm trying to make a batch script for running my Java files. I've found out that there is no way to prevent auto-closure of a batch script(except using pause keyword, tho it just waits for key press). I've also discovered that starting a new window will cause only main windows to close, not the new one too so i want a way that the command <code>SET /P file=Java file:</code> is executed in the new window(I got the new window by using the <code>start</code> keyword. Is there any way to accomplish this without downloading other softwares? this is the code i came up with yet:</p>
  <pre><code>cd &quot;C:\Users\DEVDHRITI\Desktop\Files&amp;Folders\HMMMMM\programs\java programmes&quot;
  set /P file=Java file to execute:
  java %file%^.jar
  start
  </code></pre>