Wednesday 31 August 2011

TRICK TO MAKE A SHUTDOWN TIMER


METHOD  1: (DESKTOP
1.            Right click on your desktop and choose "New=>shortcuts".
2.            In the box that says "Type the location of the shortcut",
3.            type in "shutdown -s -t 3600" without the quotation marks and click next.

 Note:3600 are the amount of seconds before your computer shuts down. So , 60secs*60mins=3600secs.
4.            Make up a name for the shortcut and you're done.

TO ABORT:
Ø  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.

 METHOD 2: (RUN)
Ø  Here is another trick to shutdown at a specific time, for example you wish to shutdown at 12:00am. Type this in..
Ø  start=>Run
Ø  Type Code: at 12:00 shutdown –s

TO ABORT:
Ø  Code:shutdown –a

METHOD 3: ( BATCH FILE)
To create a batch file for this you can use notepad, and save the file as ( .bat )
Here are the most used batch files for shutdown:
1.      SHUTDOWN:
shutdown -s
2.      RESTART:
shutdown -r
3.      FORCEDOWN:
shutdown -f
4.      LOGOFF:
shutdown -l
5.      REMOTE SHUTDOWN:
(replace computername with the name of your computer  )
shutdown -s -m \\computername
Ø  Specify Time
shutdown -s -t 60
Ø  Give Us Some Info!
shutdown -s -t 120 -c "You better finish, because I shut you down foo!"
Ø  Shutdown A Remote Computer
shutdown -s -m \\desktop -t 60

LIST  OF SHUTDOWN COMMAND SWITCHES:
–i
Display a GUI. It must be the first switch
-l
Log off the user (This cannot be used on a remote machine: “-m” switch)
-s
Shutdown the computer
-r
Restart the computer
-a
Cancels a system shutdown already in progress
-f
Forces running applications to close without warning
-m \\computername
Instruct a remote computer to shutdown (can be used with the restart & abort switches)
-t xx
Set a given time for shutdown, in seconds
-c “comment”
Shutdown comment (maximum of 127 characters)
 
HOW TO USE SHUTDOWN SWITCHES:
 You don’t have to use them all, but the switches you do use must be in the following order:
shutdown [-i | -l | -s | -r | -a] [-f] [-m \\computername] [-t xx] [-c "comment"]

No comments:

Post a Comment