Windows批处理:睡眠 [英] Windows batch: sleep

查看:154
本文介绍了Windows批处理:睡眠的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何获得Windows批处理脚本,等待几秒钟?

How do I get a Windows batch script to wait a few seconds?

睡眠好像不工作(无法识别的命令)。

sleep and wait don't seem to work (unrecognized command).

推荐答案

您可以尝试

ping -n XXX 127.0.0.1 >nul

其中XXX为秒数等待,加1。

where XXX is the number of seconds to wait, plus one.

这篇关于Windows批处理:睡眠的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆