title: Notepad++ run batfile, but Double clicking on .bat doesn't work
body: <p>I have an issue with a batfile that would open and run perfectly fine when launch through notepad++, but when manually clicking the .bat file, it will stuck. </p>
  
  <p>The longer I wait before closing it, the longer it will write this once I attempt to close it : ^C^C^C^C^C...</p>
  
  <p>After investigation, it is caused by this line:</p>
  
  <pre><code>tasklist /nh /fi "imagename eq Notepad.exe" | find /i "Notepad.exe" &gt;nul &amp;&amp; (
  echo NotePad is running
  ) || (
  echo NotePad is not running
  )
  </code></pre>
  
  <p>it will not proceed to the next line but stuck on this tasklist command.
  same thing happen if I use this instead</p>
  
  <pre><code>tasklist | find "notepad.exe" &gt;nul
  </code></pre>
  
  <p>I am not very familiar with scripting, building code through many lines found on internet and got a nice and working thing so far. Any idea what can be causing this ?</p>