介绍 |
sleep.exe 是按秒计算的延时 例:sleep.exe 5 意思就是5秒后执行,但不支持中文不推荐使用在中文环境
sleep_s.exe 是按毫秒计算的延时 例:sleep.exe 5000 意思就是5秒后执行,支持中文目录,推荐使用
SleepX.exe用于批处理暂停或等待用户按一个键 Usage: sleepx [-k] [-m] [-p prompt] delay
-k Abort the delay and return a non-zero exit code if a key is pressed. -m Delay is specified in milliseconds rather than seconds. -p Displays the specified prompt. Use quotes if it contains spaces or tabs.
如果感觉每次都需要带一个软件麻烦,可以参考这篇文章 Windows 命令行(批处理文件)延迟(sleep)方法
|