title: How to stop a running *.JAR file with a batch script?
body: <p>We are facing trouble restarting closing a running *.JAR file <code>started with the "java -cp"</code>.</p>
  
  <p>Killing java.exe worked fine.</p>
  
  <p>But... isn't there any smoother way for the application? (It saves data on shut-down)</p>
  
  <p>Also, how can one simulate any key input at the following message <code>"Enter any key to continue..."</code>  with a batch file?</p>
  
  <p>Thanks for all help!</p>