Saturday, September 20, 2008

Shutdown Your PC At A Desired Future Time


You do not need to install software [even if it’s free] to shutdown your PC at a given specified time. You can do it by setting up a desktop shortcut or by making a .bat file. It doesn’t require any rocket science. Just follow the steps in below given procedures and you will have what you get by installing those software.

Procedure 1 to Shutdown After A Specific Interval
1. Right click on your desktop and choose New > Shortcut
2. In the dialogue box “Type the location of the shortcut”, type in “shutdown –s –t 3600” (without quotes). Here 3600 is the interval in seconds. [60min x 60sec = 3600 = 1 hour]
3. Name your icon

Note: In future you can change the properties by right clicking the icon > properties > change icon.
If you want to abort a shutdown just type in “shutdown –a” in Run command dialogue box. (Obviously without quotes)

If you use –r instead of –s in above command, it will restart your system instead of shutting down.

Procedure 2: Making A Batch File
Making a batch file will ease your work. You will click it, enter the desired time and here you go…

Copy and paste the below code in a notepad new file and save this file as turnoff.bat

@echo off
title Scheduled Shutdown Batch Example by XaaHiR
color A
echo Enter Time To Shutdown (example 18:45)
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

No comments:

ShareThis