Shutdown Batch Timer

Introduction: Shutdown Batch Timer

About: I like coding.

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.

Share

    Recommendations

    • Water Contest

      Water Contest
    • Tiny Home Contest

      Tiny Home Contest
    • Fix It! Contest

      Fix It! Contest

    8 Discussions

    0
    None
    AndeyV

    1 year 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%==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

    shutdown -s -t 1800

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

    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.

    i DONT KNOW HOW TO ACTUALLY RUN IT HELP MEEEEEE

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