title: Close 2 programs, one after another, with a batch file
body: <p>I have 2 programs, A and B. I made a batch file to have them open simultaneously, and now I want to have them both close when I exit program A. </p>
  
  <p>Here's my code so far:</p>
  
  <pre><code>@echo off
  
  cd "C:\prog\test"
  start A.exe
  
  cd "C:\prog\test"
  start B.exe
  
  exit
  </code></pre>
  
  <p>I can't find any tutorial that doesn't involve some kind of timer. Problem is, I have no idea how long I'll be working with them before closing. Can anyone help?</p>