Introduction: Shutdown Batch Timer

Picture of 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

Picture of 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

Picture of 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!

Picture of Done!

I hope you enjoyed this instructable. Please vote for it.

Comments

AndeyV (author)2017-07-05

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%==0 goto home
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 (author)2017-03-28

shutdown -s -t 1800

does the same thing plus you get a countdown appear that you can cancel.

seamster (author)2014-10-14

Interesting. For what purpose would this be used?

MarkusB9 (author)seamster2015-11-10

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 (author)MarkusB92016-04-13

I'm glad I could help!

keneddythe1 (author)gogoguy2016-11-22

i DONT KNOW HOW TO ACTUALLY RUN IT HELP MEEEEEE

MarkusB9 (author)MarkusB92015-11-10

correction, I just used the .bat file timer. :)

TOX1K DEFTON3 (author)seamster2014-10-15

You could use it in my fake virus instructable.

About This Instructable

23,030views

4favorites

License:

Bio: I like coding.
More by gogoguy:The Bubbles of AwesomenessSweet Child o' Mine - SoloSweet Child of Mine
Add instructable to: