Adm1n_0v3rride

Countdown

Jan 17th, 2018
103
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @echo off
  2. title Counter
  3. echo Start countdown at?
  4. echo.
  5. set /p counter=Num^>
  6. if %counter%==0 goto Cfz
  7. if %counter% LEQ 0 goto Error
  8. cls
  9. :Loop
  10. echo Num: %counter%
  11. timeout /T 1 /NOBREAK>>nul
  12. set /a counter=%counter%-1
  13. if "%counter%"=="0" echo Num: 0& goto EndLoop
  14. goto Loop
  15. :EndLoop
  16. echo Fertig!
  17. echo.
  18. pause>>nul
  19. exit
  20. :Error
  21. echo That is not a number.
  22. pause>>nul
  23. exit
  24. :Cfz
  25. echo You can not count down from the number 0 LOL.
  26. pause>>nul
  27. exit
RAW Paste Data