如何在批处理文件/ cmd中休眠五秒钟[重复]

本文翻译自:How to sleep for five seconds in a batch file/cmd [duplicate]

This question already has an answer here: 这个问题在这里已有答案:

Windows's Snipping tool can capture the screen, but sometimes I want to capture the screen after five seconds, such as taking an image being displayed by the webcam. Windows的Snipping工具可以捕获屏幕,但有时我想在五秒钟后捕获屏幕,例如拍摄网络摄像头显示的图像。 (Run the script and smile at the camera, for example.) (例如,运行脚本并对相机微笑。)

How do I sleep for 5 seconds in a batch file? 如何在批处理文件中睡5秒?


#1楼

参考:https://stackoom.com/question/713C/如何在批处理文件-cmd中休眠五秒钟-重复


#2楼

Well this works if you have choice or ping. 如果您有选择或ping,这是有效的。

@echo off
echo.
if "%1"=&#
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值