Get the App
SLTechnology News&Howtos  ›  Development  › 

How to realize the dos/bat that shuts down at a specified time every day of the week

Shulou Source: shulou.com Published: 2022-06-03 08:32:22 11月15日 Update

This article will explain in detail how to achieve the dos/bat of shutting down your phone at a specified time every day of every week. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.

If not "% times%" = "" for% I in (% times%) do (at% I / every:M,T,W,Th,F,S,Su shutdown-s)

The above statement realizes the shutdown at a specified time every day of the week.

If you want to change to certain days of each month, please change letters to numbers and separate them with commas

There is no error detection statement in the following code. Be sure to enter the time in the specified format.

You can use the at command in the CMD window to view scheduled tasks

This is the end of this article on "how to achieve the dos/bat of shutting down your phone at a specified time every day of the week". I hope the above content can be helpful to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.

Tags: Time week article more statement input good practical code task content command letter number article time format knowledge comma error Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker vpn MariaDB Xiaomi Apple