在bat批处理中简单的延时方法

使用for命令:

延时1s左右的方法:

1 @echo off
2 echo %time%
3 for /l %%i in (1,1,10000) do echo %%i>nul
4 echo %time%
5 pause

%time%是用来显示延时时间,实际使用时,根据需要修改第三个参数(立即数10000对应的位置)即可。

posted @ 2019-10-21 14:47  xbook_ben  阅读(5175)  评论(0编辑  收藏  举报