How the computer realizes the timer shutdown through batch processing file

Source: Internet
Author: User

1, create a new text document, click Rename to change its extension to bat;

2, right click on this bat file, select Edit;

3. Copy the following command to the bat file:

At 23:00 shutdown-s-T 100-c "It's time to go to bed" ———— means to turn off at 23:00, and hint that it's time to go to bed.

4, double-click the bat file, the command will flash, if you want to see the success of the command, you can add a command pause, the command will stop after execution, press any key window will be closed;

5, the time will be turned off, and prompted to sleep;

6, if you want to cancel the shutdown, open the command prompt input shutdown-a cancel execution.

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.