Advertisement
thepowderguy

Prevent shutdowns!

Feb 20th, 2014
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.25 KB | None | 0 0
  1. @echo off
  2. :start
  3. color 0a
  4. shutdown /a
  5. if %errorlevel%==0 goto error
  6. cls
  7. echo Press Control-C to exit batch script
  8. echo %date% %time%
  9. timeout 1 /nobreak
  10. goto start
  11. :error
  12. color 0c
  13. echo Shutdown prevented! 
  14. timeout 1 /nobreak
  15. goto start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement