bat 脚本 延时,读取文件

时间:2021-02-02 11:26:28   收藏:0   阅读:0

### 读取文件

ping 127.0.0.1 -n 1 > tmp.txt
for /f i in (tmp.txt) do ( echo %i% ) 

 

### 延时

借用ping的延时, 当前这个延时不精准,只能是大概有延时1秒的效果 。 

ping 0  -n 2 > nul 

 

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!