Desktop computer win7 automatic shutdown command function introduction

  
Windows XP (7) shutdown is controlled by the Shutdown.exe program, located in the WindowsSystem32 folder. If you want Windows 2000 to achieve the same effect, you can copy Shutdown.exe to the system directory.
For example, if your computer needs to be shut down at 22:00, you can select “Start →Run”, enter “at 22:00 Shutdown -s”, so that at 22 o'clock the computer will appear "System shutdown & rdquo; dialog box, the default has a 30 second countdown and prompts you to save the work. If you want to shut down in a countdown mode, you can enter “Shutdown.exe -s -t 3600”, which means that it will automatically shut down after 60 minutes, "3600” represents 60 minutes.
After setting the automatic shutdown, if you want to cancel, you can enter “shutdown -a” in the running. In addition, enter "ldtdown -i" to open the Set Auto Shutdown dialog box to set the Auto Shutdown. The parameters of Shutdown.exe, each have a specific purpose, each of them will have different effects, such as "-s”" means to shut down the local computer, "-a", means cancel the shutdown operation, listed below Multiple parameters, you can use as needed in Shutdown.exe.
-f: Force the application to close
-m Computer name: Control remote computer
-i: Display the graphical user interface, but it must be the first option of Shutdown
-l: Logout the current user
-r: Shut down and restart
-t Time: Set shutdown countdown
-c "Message content": Enter the message content in the shutdown dialog box (cannot exceed 127 characters)
At the time, we need to shut down the computer regularly. Here is an easy way to implement a timed shutdown under Windows XP.
The specified system automatically shuts down after 22 minutes: Click “Start →Run”, enter the command "Shutdown-s -t 1320” in "open"; (Note: quotes are not entered, between parameters There are spaces, the unit of 1320 is seconds), click the “OK” button.
Specify that the system automatically closes at a certain time (such as 12:00): Enter the command “at 12:00 Shutdown -s” in “Open”
Cancel the timed shutdown: Enter the command "Shutdown -a" in "Open" & rdquo;
can be achieved using the "Shutdown" command, the shutdown parameter is entered in the command line window "shutdown". The author believes that the most useful is the "-i" parameter, you can call out the "remote shutdown dialog box", which can easily realize the remote shutdown of the computer in the LAN, interested friends can give it a try.
Start - Programs - Accessories - System Tools - Schedule Tasks - Add Task Schedule - Next - Browse - *** windowssystem32shadow.exe - Next - Select the time to shut down, Next - enter the username and password, as long as It is the user in the system, but there must be a password, there is no need to set one, the next step, select "Open the advanced attribute of this task when finished", and add "ld" after the run bar. -S” Do not quote quotes

Copyright © Windows knowledge All Rights Reserved