title: Running an .exe file through a batch file and passing parameters
body: <p>I have an .exe file that takes two parameters when i run it from the command line, as such:</p>
  
  <pre><code>test_app.exe -vid.avi -data.txt
  </code></pre>
  
  <p>How would i be able to <code>START</code> the <code>.exe</code> file through a batch script and pass it those parameters?</p>
  
  <p>If i have multiple <code>.avi</code> and <code>.txt</code> files that i need to pass to the <code>.exe</code> file through <code>START</code>, how would i be able to have a variable that goes through all of those files two at a time? (pairing every <code>.avi</code> with it's correspondant <code>.txt</code>).</p>
  
  <p>Let's assume that every pair of <code>.avi</code> and <code>.txt</code> share the same name but obviously have different extensions.</p>
  
  <p>I need to write something like this:</p>
  
  <pre><code>@ECHO OFF
  START test_app.exe -vid.avi -data.txt
  pause
  </code></pre>
  
  <p>But the parameters should be variables that increment every time a pair of parameters are proccessed through the <code>.exe</code> so it would loop on all of the files in the CWD.</p>
  
  <p>Trying to do this but seems like START does not work that way?</p>
  
  <pre><code>@echo off
  for %%a in (*.avi) do (
  START Tester.exe -%%a -%%~na.txt
  )
  pause
  </code></pre>