title: Batch file to close program after second program opens
body: <p>I have a frontend program (a.exe) that I use to curate and launch other programs (in this example b.exe). Once the item in the frontend (a.exe) is selected from the list (b.exe) launches. Problem is the frontend (a.exe) stays open and to close it I have to manually exit out of the program it launched (b.exe) to the desktop to do so.</p>
  
  <p>What I am trying to do is have the frontend (a.exe) close after an item within it is selected (b.exe). This would be trigged by a double click.</p>
  
  <p>How would I go about creating a batch file to do this?</p>
  
  <p>The frontend program (a.exe) has a GUI interface.</p>
  
  <pre><code>@echo off
  cd "C:\Program Files\a.exe folder"
  start a.exe
  </code></pre>
  
  <p>then what?</p>