If you want to go out, but the computer is working, it is necessary to use automatic shutdown. Most of the automatic shutdown methods use some third-party software, which is not only troublesome, but also specially uses a software to achieve this small feature! In fact, Windows XP (Windows 2000 can also be) itself has a function of timing shutdown. Let's take a look at how to implement Windows XP automatic shutdown.
The shutdown of Windows XP is controlled by the shutdown.exe program, located in the Windows \System32 folder
. If you want Windows 2000 to achieve the same effect, you can copy ShutDown.exe to the system directory.
For example, your computer is turned off at 22:00, you can choose "Start → Run", enter "AT 22:00 Shutdown -s", which, "System Shutdown" dialog box will appear in the 22nd computer, 30 seconds by default The countdown to the clock and prompt you to save your job. If you want to shut down in a countdown, you can enter "shutdown.exe -t 3600", which is 60 minutes after 60 minutes, "3600" represents 60 minutes.
After setting the automatic shutdown, if you want to cancel, you can enter "Shutdown -a" in the run. In addition, enter "shutdown -i", you can open the Setup Auto Shutdown dialog and set the Auto Shutdown.
Shutdown.exe's parameters, each has specific purposes, performing each of the effects, such as "-s" means that the local computer is turned off, "- a" means the cancellation operation, and more parameters are listed below Everyone can use it in shutdown.exe.
-f: forcibly shut down the app
-M // computer name: Control remote computer
-i: Display graphical user interface, but must be the first option of Shutdown
-L: Logout current user
-r: shutdown and restart
-T Time: Set the shutdown countdown
-c "message content": Enter the message content in the shutdown dialog (not over 127 characters)
My approach is generally new. Bat file, the content is as follows:
C: /Windows/system32/shutdown.exe -s -f -t 3600 -c must shut down!
It is ambiguous to turn off the computer after an hour;
another:
AT 02:00 C: /Windows/system32/shutdown.exe -s
Indicates 2:00 shutdown.