title: How to return exit status from an HTA (vbscript) to the calling Batch file
body: <p>How to return exit status from an HTA (vbscript) to the calling Batch file ?</p>
  
  <p>My batch file code </p>
  
  <pre class="lang-dos prettyprint-override"><code>@echo OFF
  echo Configuring Test...
  call AppConfigurationEditor.hta
  call TestConfigurationEditor.hta
  </code></pre>
  
  <p>1.If user click on CANCEL button on the first HTA I dont want to run 2nd HTA.</p>
  
  <p>2.Batch script calls/displays the 2nd HTA immediately, not wait till closing of 1st HTA.</p>