Windows 7 Timed Shutdown tips

Source: Internet
Author: User
Tags sleep function

Windows 7 Timed Shutdown tips
Problem description:
Users want to implement the Timed Shutdown function in Windows 7 and can cancel the function at any time. How can this problem be solved?
Solution:
Two doscommand methods can be used to solve the problem.
1. Countdown shutdown in Win7 (run cmd command line window with administrator privilege) Run CMD, type shutdown-f-s-t XX (XX is time, unit is second; -f indicates that "A forcibly executed application is disabled without warning";-s indicates "disabling this computer";-t XX indicates "setting the shutdown timeout to XX seconds ")
For example, if you need to shut down your computer one hour later, type shutdown-f-s-t 3600. After the command is successfully typed, a countdown interface is displayed. Cancel Method: shutdown-a can terminate command 2. Shut down on time in Win7 (use the Administrator permission to run the cmd command line window) Run CMD, type at xx: xx shutdonw-s (xx: xx indicates the specific time;-s indicates "shut down this computer". For example, to shut down a computer at a.m. on time, type at shutdonw-s. After the command is successfully typed, the system will prompt "a new job has been added with its job ID = X", and "X" indicates the method for canceling the ID number. In the DOS window, enter at and press enter to display the current scheduler list, then, the keyboard is at x/delete (x represents the ID number ). For example, to cancel the shutdown plan with ID 1, type at 1/delete3, use the scheduled task, click Start, and enter the task plan in the search box to open the task scheduler interface. Click "operation" and select "create basic task". Then, you can go to the "create basic task" Wizard and follow the prompts to perform step-by-step operations. This is suitable for those who are not familiar with this operation. If you are familiar with the task plan, you can choose to create a Task directly to create a new task. The following describes how to shutdown at a specific time. Complete, and enter "-s" in the parameter. Click "Create task". The created task is displayed in the list. The detailed attributes of the task are shown below.
In addition to Timed Shutdown, timed sleep is also a good choice. The wake-up of a computer in sleep mode is much faster than that of a new machine, and the running state at the moment of sleep can be retained. To implement timed sleep, you can use a batch file. It is easy to introduce the method of creation. First, create a new notepad file and enter "RUNDLL32.EXE powrprof.dll, setsuspendstateparameters, and then change the extension name of the notebook from". txt "to". bat ". Double-click the file to sleep the computer. You can select this batch file in the startup program of the task plan to implement timed sleep. (Of course, your power supply must support sleep function)
If you want to run the function of a program at a certain time, you only need to replace shutdown.exe with the program you want to run in the place where the program is started, which is very convenient. These are just a simple application in the task plan and mainly serve as an example. You can try more settings and functions on your own.
 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.