Shutdown Batch Timer
Intro: Shutdown Batch Timer
Here I have created a batch file that has a specified amount of minutes until it shuts your computer down. And all you need is:
A windows computer
Notepad or Notepad++
That's it!
STEP 1: The Code
This code is very simple. All you have to do is to copy and paste the following code into notepad, and then save as 'whatever.bat':
@echo off
pause
timeout 1800
shutdown -s
Where it says '1800', that's the amount of seconds for 30 minutes, which will make the computer shutdown in half an hour. If you want to, you can edit that number. On the next step, there's a list of the amount of seconds in every 5 minutes starting with 5.
STEP 2: Seconds in Minutes
5 Minutes = 300 seconds
10 minutes = 600 seconds
15 minutes = 900 seconds
20 minutes = 1200 seconds
25 minutes = 1500 seconds
30 minutes = 1800 seconds
35 minutes = 2100 seconds
40 minutes = 2400 seconds
45 minutes = 2700 seconds
50 minutes = 3000 seconds
55 minutes = 3300 seconds
60 minutes = 3600 seconds
STEP 3: Done!
I hope you enjoyed this instructable. Please vote for it.
8 Comments
AndeyV 6 years ago
This is cool but I got a cooler timer here It is
@echo off
color 0a
:home
title timer
cls
set time
set /p time=
if %time% lss 0 goto lsshome
if %time%==a goto home
cls
echo.
echo time %time%
timeout 1 > null
:time
cls
echo.
set /a time=%time% -1
if %time%==0 goto timeup
if %time% lss 0 goto timeup
echo time %time%
timeout 1 > null
goto time
:lsshome
cls
echo - 0 is not a number
timeout 3 > null
goto home
:timeup
title time up
cls
msg * TIME !!! UP !!!
msg * TIME !!!! UP !!!!
msg * TIME !!!!! UP !!!!!
timeout 1 > null
msg * shutdown in 10 seconds , do you want to stop shutdown ? then goto the batch file
echo.
set stime=10
echo shutdown in %stime%
echo.
echo no stopting the shutdown now ahhahahahahhahah
timeout 1 > null
:stime
cls
set /a stime=%stime% -1
if stime==0 exit
echo no stopting the shutdown now ahhahahahahhahah
echo.
echo shutdown in %stime%
timeout 1 > null
goto stime
ChrisN174 7 years ago
shutdown -s -t 1800
does the same thing plus you get a countdown appear that you can cancel.
seamster 9 years ago
Interesting. For what purpose would this be used?
MarkusB9 8 years ago
idk if you still use this webpage. But I just used it, im going to bed right now. I sat the timer for 2 hours, I'm downloading atm. This was very useful.
gogoguy 8 years ago
I'm glad I could help!
keneddythe1 7 years ago
i DONT KNOW HOW TO ACTUALLY RUN IT HELP MEEEEEE
MarkusB9 8 years ago
correction, I just used the .bat file timer. :)
TOX1K DEFTON3 9 years ago
You could use it in my fake virus instructable.