Saturday, January 19, 2008

Timer to shutdown your PC

Do you know that you can make your PC shutdown at a time you wish to?
Here is the trick!!

How To Make A Shutdown Timer!

METHOD-1

01. Right click on your desktop and choose "New->shortcut".
02. In the box that says "Type the location of the shortcut",
type in "shutdown -s -t 3600" without the quotation marks but include the spaces, and click next.

Note: 3600 are the amount of seconds before your computer shuts down.
So, 3600 secs = 60 mins = 1 hour

03. Make up a name for the shortcut and you're done.

You can change the icon by right clicking=>properities=>change icon=>browse.

To abort the shutdown:

To make an abort key to stop the shutdown timer, just create another shortcut and make
the "location of the shortcut" to "shutdown -a" without the quotes and save it with another name you wish.

----------------------------------
METHOD 2

Here is another trick to shutdown at a specific time, for example you wish to shutdown at 11:35am. Type this in start->Run

"at 11:35 shutdown -s" without quotes


To Abort, type this in Start->Run

"shutdown -a" without quotes


Note: All time are in 24hr, for eg., if you would like to shutdown at 8:30 PM, you should type

"at 20:30 shutdown -s" without quotes

------------------------------------------------
METHOD 3

You can use a batch file for that as well. It makes it easier to use.
Just run the file and enter the time at which you want your pc to shutdown.

To create the batch file, open Notepad,

Type this Code:


@echo off
title Scheduled Shutdown Batch Example by chacha1234
color A
echo Enter Time To Shutdown (example 19:30)
set /p stime=
cls
at %stime% ""shutdown -s -t 00"" >nul
echo Your PC Will Auto Shutdown At %stime%
echo Press Any Key To Exit
pause >nul
exit


Save the above file as "shutdown.bat" in your desktop.

Also you can add -c "desired message" at the end of the shutdown command
for example,
shutdown -s -t 60 -c "Shutdown PC"


Using this command you can also schedule your PC to restart.
for example,
shutdown -r -t 60 -c "Restarting PC"

To execute, simply double-click on the "Shutdown.bat" file in your desktop.

Cool, huh?

No comments: