How To Make A Shutdown Timer

Posted: October 12, 2015 in win tricks

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”]
Run This Batch script and your computer will shut down automatically in 60 Seconds.

Posted by Shubham ;)

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s