Sunday, July 25, 2010

Shutdown your computer after desired time




Friends usually many of us have the habit of downloading s/w or movies in the night the system downloads the whole movie or software and after downloading it still runs thus increasing our electricity bills......
now let me tell you that we can shutdown our machine at desired time by using a function
to do this goto run...>cmd ..>shutdown

"shutdown"
Allows you to shut down . Used without parameters, shutdown will logoff the current user.
Syntax

shutdown [{-l|-s|-r|-a}]
Parameters

-l : Logs off the current user, this is also the defualt. -m ComputerName takes precedence.

-s : Shuts down the local computer.

-r : Reboots after shutdown.

-a : Aborts shutdown. Ignores other parameters, except -l and ComputerName. You can only use -a during the time-out period.

-f : Forces running applications to close.

thats short info about shutdown and its parameters

when we start a d/w accoring to our net speed we can now approximate in how much time the file will be downloaded .let us the file will be downloaded in 20 minutes
then we have to type
shutdown -s -t 1200
here 1200 stands for 20 min bcoz the -t switch is to be followed by seconds and here 20 min so 20*60=1200
the same shutdown() function can be used to either shutdown or restart or logoff after a given interval of time .
everytime giving this command is tedious to some of us
inorder to simplify this we can create shortcuts to shutdown and restart which tells the computer to do so after specified time interval


Create a desktop shortcut:

To create desktop shortcut you need to right-Click on the desktop and choose shortcut.
In the type the location for the item paste this :

For shutdown
shutdown -s -t 00
As you can see above, this says to shutdown immediately.

For shutdown and restart
shutdown -r -t 00
As you can see above, this says to shutdown and restart immediately.
shutdown -l -t 00

The 00 can be replaced by time delay you want to give before working.. Its in seconds


---enjoy---

No comments:

Related Posts with Thumbnails