title: tasklist show all windows
body: <p>I am running the following batch script:</p>
  
  <pre><code>@echo off
  tasklist /nh /fi "Windowtitle eq Export to PDF - DOORS" | find /i "Export to PDF - DOORS" &gt;nul &amp;&amp; (
  echo PDF is running
  ) || (
  echo PDF is not running
  )
  </code></pre>
  
  <p>This only echos "PDF is running" if the window is currently active. Perhaps I am using the wrong command (tasklist). Is there a way to find in the full list of open windows?</p>