如何将计时器添加到批处理文件? [英] How do I add a timer to a batch file?
本文介绍了如何将计时器添加到批处理文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想使该等待几分钟一个批处理文件,然后执行一个命令。我会怎么做呢?具体而言,我希望它打开文件后,最终在3分钟内另一个程序。
I want to make a batch file that waits for a few minutes, then executes a command. How would I do this? Specifically, I want it to end another program in 3 minutes after opening the file.
推荐答案
另一种方法是ping一个无效的IP地址一定量的时间:
Another method is to ping an invalid IP address for a certain amount of time:
PING 1.1.1.1 -n 1 -w 60000 >NUL
60000 =毫秒
60000 = milliseconds
这篇关于如何将计时器添加到批处理文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文