Xp timing shutdown and restart trick

  

first talk about how to quickly shut down. We right click on the desktop, select New/Shortcut, then type "ld:;c:\\windows\ undll.exe user.exe" on the command line, exit windows” click Next, just pick a name, then click OK. Just built a shortcut on the desktop, we can turn off Windows by just clicking it. Then talk about how to restart. We first create a batch file on the hard disk, the content is "@exit", and then create a shortcut for this file on the desktop, then right click on the method, select properties from the menu. In the property settings box, click the Programs tab, then click the Advanced button, check the MSDOS mode option in the Advanced Program Settings dialog box, then click OK twice to close all dialog boxes, so we just need to click this With a shortcut, you can restart Windows. Both of the above methods are used under Windows 98.

Now I will introduce you to an alternative shutdown method under XP. Use shutdown.exe to implement a timed shutdown.

This program is located in the System32 directory of the Windows XP Windows installation directory. If you use it, you can use it in the Run dialog of the Start menu. Open the Start menu, open the Run dialog box, enter shutdown -s -t 0060.0060 means to shut down after 60 seconds, we can also enter other numbers to specify the shutdown time. After inputting, click the Enter or click the OK button to run the program. After running the program, a dialog box will appear immediately telling you how long it will take to shut down. Of course, the time is your own, and remind you to be prepared.

Windows XP shutdown 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, 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" The box has a 30 second countdown by default and prompts you to save your work. If you want to shut down in a countdown mode, you can enter "Shutdown.exe -s -t 3600” (with a prompt box), 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 run. In addition, enter “shutdown -i”, you can 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 \\\\computername: control remote computer -i: display graphical user interface, but must be the first option of Shutdown -l: log out current user -r: shutdown and restart -t time: Set Shutdown Countdown -c "Message Content": Enter the message content in the Shutdown dialog box (cannot exceed 127 characters) Sometimes, 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, there are spaces between the parameters, The unit of 1320 is seconds), click the <;OK” button. The specified system is automatically turned off 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”. The implementation of the energy is achieved by 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", can easily realize the remote shutdown of the computer in the LAN, interested friends can give it a try. Start - Programs - Accessories - System Tools - Scheduled Tasks - Add Task Schedule - Next - Browse - c:\\windows\\system32\\shadow.exe - Next - Select the time to shut down, Next - enter your username and password, As long as there are users in the system, but there must be a password, there is no need to set one, the next step, select "Open the advanced attributes of this task when finished", add "ld" after the run bar -S&rdquo Do not quote quotes.

Copyright © Windows knowledge All Rights Reserved