title: Batch call different HTAs
body: <p>Is there a way to call multiple HTA-APPs in one batch?</p>
  
  <p>I have several pages of HTA that I want to call in different places from a batch.</p>
  
  <p>For example:</p>
  
  <pre><code>&lt;!-- :: Batch section
  
  @echo off
  setlocal enableextensions disabledelayedexpansion
  
  for /F "tokens=1,2 delims=|" %%a in ('mshta.exe "%~F0"') do (
      set "field1=%%a"
      set "field2=%%b"
  )
  
  echo %field1%
  echo %field2%
  
  set var=hallo
  for /F "delims=" %%a in ('mshta.exe "%~F0" %var%') do set "HtaResult=%%a"
  
  echo Result = %HtaResult%
  
  echo End of HTA window
  pause
  goto :EOF
  </code></pre>
  
  <p>The problem is that I want to call both HTAs in a batch.
  At the moment, I always call only the first HTA. Is there a possibility?</p>