Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- cls
- :hour
- set hour=
- set /P hour=Enter how many hours until shutdown: %=%
- echo hour = %hour%
- :minute
- set minute=
- set /P minute=Enter how many minutes until shutdown: %=%
- echo minute = %minute%
- set /A realhour = hour * 60
- set /A hoursANDminutes = realhour + minute
- set /A total = hoursAndminutes * 60
- echo Your computer will shut off in %total% seconds.
- echo Starting the sleep process ...
- sleep total
- echo Computer is shutting down in:
- echo 5
- sleep 10
- echo 4
- sleep 10
- echo 3
- sleep 10
- echo 2
- sleep 10
- echo 1
- sleep 10
- shutdown -s -t 00
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement