0

我有一个批处理文件,它使用 GOTO LABEL 无限运行一组命令。我想把它变成一个运行预定分钟数的循环。在 Windows XP 及更高版本下执行此操作的最佳方法是什么?

4

1 回答 1

0

time在开头解析变量并添加所需的分钟数。
然后,如果达到停止时间,您需要检查每个循环。

set "startTime=%time%"
Split the time into Hour, minutes, seconds
Add the desired minutes regarding overflows to the hour field.

Begin your loop
Parse the current time
Check if Hours and minutes are reached
Else restart the loop
于 2013-07-11T07:34:53.747 回答