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.

Tech Contest

Participated in the
Tech Contest