Sunday, 18 August 2013

Scheduled computer shut down

1. Open a Notepad and type the following code “c:\windows\system32\shutdown -s -f -t 00”.

[NOTE: Replace the code 00 with the time (in seconds) to shutdown.]

s is the command for shutdown. f is for performing a forced shutdown. If an application stops responding when shutting down, this command will force shut it. Using this command is not compulsory, but recommended. And next, the t command is for specifying the time the shutdown will take place. After you put the t command give a space and then enter the time in seconds. 

For E.g. To stop PC after 2 hours, enter "c:\windows\system32\shutdown -s -f -t 7200”. And after 6 hours, enter "c:\windows\system32\shutdown -s -f -t 21600”.

2. The last two digits of the code indicate the time you need to set.

3. Save the file with any name of your choice and  “.bat” extension. 

A file will be created with “.bat extension”

4. On opening that file, the timer will start and it will shut down after the time which is complete.

5. This timer will always keep the CPU busy and will not allow it to sleep.


If you want to restart the computer instead of shutting it down, replace the ‘s’ with ‘r’.

Similarly, if you’d like to logoff, replace ‘s’ with ‘l’.

No comments:

Post a Comment

Popular Posts