How to Automatically Shut Down Your Computer at a Specified Time
Two Methods:Using the Task SchedulerCreating a BAT File
Do you always forget to switch off your computer before going to bed, or just forget to look at the clock while you're working? This article will tell you how to get your computer to shut down at a time specified by you.
Steps
Method 1 Using the Task Scheduler
- 1Open the Task Scheduler. This option is available in Windows 7 and Windows 8. In Windows 7, click Start → Control Panel → System and Security → Administrative Tools → Task Scheduler. In Windows 8, press the ⊞ Win key, type "schedule tasks", and select "Schedule tasks" from the search results.
- 2Click "Create Basic Task". This option is available in the Actions menu on the right side of the window. You will need to give the task a name and description. Name it something easy to remember, such as "Shutdown Timer". Click Next > to continue.
- 3Choose the frequency. Select the "Daily" option on the "Task Trigger" page and click Next >. Choose the time you want your computer to shut down each night. Leave the "Recur ever: X days" setting to "1". Click Next >.
- 4Choose "Start a program". This option will be on the "Action" screen and should be automatically selected. Click the Next > button to proceed.
- 5Enter the location for the shutdown program. When Windows shuts down, it actually runs a shutdown program. In the "Program/script" field, type C:\Windows\System32\shutdown.exe.
- In the "Arguments" filed, type /s. Click Next >.
- 6Review your settings. In the Summary screen, review your settings to make sure that you have selected the correct day. Click the Finish button to save the task. Your computer will now shut down at that specified time each day.[1]
Method 2 Creating a BAT File
- 1Open notepad by going to Start> All Programmes> Accessories> Notepad. Or, you can just type "notepad", without quotes, into the start menu and hit enter.
- 2Copy the following code:
- @echo off
- :W
- if %time%==00:00:00.00 goto :X
- goto :W
- :X
- shutdown.exe /s /f /t 60 /c "Go to bed!!!!!!"
- This constantly checks the time to see if it is midnight and, if it is, it shuts down the computer with the message "Go to bed!!!!"
- 3Change the if %time%== part to a time of your choice. It must be in this format: HH:MM:SS.MS and in 24 hr format otherwise it won't work.
- 4Go to File> Save As.
- Change the "Save as type" box to "All Files"
- Type "timer.bat" into file name and click "Save"
- 5Double click the file. A blank command prompt screen should appear.
- 6Leave this window open while you do your work.
- 7When the time you specified in step 3 comes around, your computer should display a message for one minute, then shut down.
- 8If you wish to abort the shutdown, press the Windows Key (the key with the Microsoft logo on it) + R.
- 9Type "shutdown -a", without quotes into the window that appears and hit Enter. A Command Prompt window should appear, then disappear. A balloon similar to this one should appear.
Warnings
- These steps are for Windows 7 users only. This programme may not work on other operating systems.
- Remember to leave the command prompt window open. You can minimize it if you wish.
Sources and Citations
Article Info
Categories: Basic Computer Skills | Windows 7