title: check if command was successful in a batch file
body: <p>How within a batch file to check if command</p>
  
  <pre><code>start "" javaw -jar %~p0/example.jar
  </code></pre>
  
  <p>was successful or produced an error?</p>
  
  <p>I want to use if/else statements to echo this info out.</p>