title: windows batch file, if else condition to check if task exist
body: <p>Current I have this set of codes in a TEST.bat</p>
  
  <pre><code>@echo off
  echo HELLO
  pause
  </code></pre>
  
  <p>What I want to do is...</p>
  
  <p>1) I play TEST.bat, it shows "HELLO" on a command prompt (Correct)
  2) I play again, another windows pop up "HELLO" on a command prompt (correct behavior but.. )</p>
  
  <p>Is it possible to do this</p>
  
  <pre><code>If(cmd.exe is running)
  {
   close it
   play TEST.BAT
  }
  </code></pre>