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

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.

<p>shutdown -s -t 1800</p><p>does the same thing plus you get a countdown appear that you can cancel.</p>
<p>Interesting. For what purpose would this be used?</p>
<p>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.</p>
<p>I'm glad I could help!</p>
<p>correction, I just used the .bat file timer. :)</p>
<p>You could use it in my fake virus instructable.</p>

About This Instructable




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