title: Batch files: reboot after pause?
body: <p>I'm looking for a solution to reboot the system if the batch crashes and the "pause" command line (Press any key to continue...) gets triggered.</p>
  
  <p>Is it possible to scan for the line (Press any key to continue) and force a complete reboot? Will something like this work?</p>
  
  <pre><code>@echo off
  TIMEOUT /T 20
  AppWhichLikesToCrash.exe
  pause
  :loop
  echo Press any key to continue...
  shutdown -t 0 -r -f
  goto loop
  </code></pre>
  
  <p>I found solutions but they are turning the batch to a service, I don't want to do this.</p>