title: Windows batch file to exit only if a certain application is not active?
body: <p>I use a simple iconized batch file to shut down Windows with one click: </p>
  
  <p><code>%windir%\System32\shutdown.exe -s -t 0</code></p>
  
  <p>How can I modify this so it will not shut down if a certain application is running ?</p>