title: Windows batch script launch program and exit console
body: <p>I have a batch script that I use to launch a program, such as <code>notepad.exe</code>. When I double click on this batch file, notepad starts normally, but the black window of the <code>cmd</code> who launched <code>notepad.exe</code> remains in the background. What do I have to do in order to launch <code>notepad.exe</code> and make the cmd window disappear?</p>
  
  <p><strong>edit</strong>:  is more complicated than using <code>\I</code>.</p>
  
  <p>The <code>cmd</code> calls <code>cygwin</code>, and <code>cygwin</code> starts <code>notepad</code>. I use </p>
  
  <p><code>start \I \path\cygwin\bin\bash.exe</code></p>
  
  <p>and the first window (cmd) disappears, but a second window (\cygwin\bin\bash.exe) is still on the background. In the cygwin script I used <code>notepad.exe &amp;</code> and then exit.</p>