title: PC shutdown command with abort option that will work in Windows 8
body: <p>I have been trying to create a batch file(s) that triggers my Windows 8 PC to begin shutting down after 30 seconds has elapsed and that also has a warning message: "Your PC will shutdown in 30 seconds! Please press Cancel button to abort Shutdown." I have created the following batch files on my desktop:</p>
  
  <p>shutdown /s /c "Your PC will shutdown in 30 seconds! /t 30</p>
  
  <p>and:</p>
  
  <p>shutdown /a</p>
  
  <p>and it does shutdown the pc, but the message will not show until exactly 30 seconds later and goes away within 1 second and starts shutting down with no way to stop it. I have even tried to do the shutdown /a batch file before the 30 seconds is up with no luck in stopping the shutdown. </p>
  
  <p>Is the commands not correct for Windows 8?</p>
  
  <p>I would like to have one script with the popup message warning and with a cancel (abort) button prior to the 30 seconds expiring or at least get the 2 batch files to work in Windows 8 with a warning message and the abort batch file both working.</p>
  
  <p>Not sure if Windows 8 has a command or something that works but would like to get it working. Any help is so greatly appreciated!!!</p>
  
  <p>Thanks you very much!</p>
  
  <p>Billy</p>