美文网首页
A Windows System Skill

A Windows System Skill

作者: 胡西恒 | 来源:发表于2018-09-21 09:33 被阅读24次

    In our daily life, sometimes you will meet the problem that maybe you forget to turn down the computer because you are downloading. Although it isn't frequent, we could avoid it totally. Today I will teach you how to let the computer shut down regularly and cancel shutdown by batch files.

    Timed shutdown
    First we should make a new text document on the desktop, then open the document, write the command line(shutdown -s -t 3600) in it. Explain briefly, the instruction of shutdown is shutdown, "-s" is 「shut down the computer」and "-t" is「the time you hope the computer will shutdown」. finally, "3600" is「how many seconds the computer shut down」. Save the document and rename it like "filename.bat". Now the document will become a batch file. Double click it, your computer will shut down after one hour.

    Cancel shutdown
    Sometimes when we set the computer shut down regularly, but how to cancel it? Next I will tell you how to cancel it.
    Similarly, we make a new text document on the desktop and open it. Then write the command line(shutdown -a) in it. "-a" is 「abandon shutdown」. Save and rename it like "filename.bat". Double click it, your computer will cancel shutdown.

    相关文章

      网友评论

          本文标题:A Windows System Skill

          本文链接:https://www.haomeiwen.com/subject/aytanftx.html