title: How to open cmd window and run commands in it with a batch file?
body: <p><strong>Main question:</strong> I want to use a batch file to open cmd window so that some commands are run on that new opened window. How do I do that? </p>
  
  <p>To be more precise I want to make batch file which would open a cmd window, compile Java code and run the application (using commands listed in the batch file) so I could see some application output in the window and when application closes cmd window should stay open. Saying this because I don't know if there are specific/useful use cases conserning Java.</p>