批处理延时命令——sleep(我的鸡肋收藏)
我初涉dos时,曾下大力气寻找sleep.exe,幸运的找到了。在网上看到过很多关于批处理延时的方法,本论坛里更是精华,但很少有人用sleep命令(非vbs),只好压在箱底。
近日看到有人推荐sleep.exe(是以毫秒为单位的),勾起了我的兴趣,厚着脸皮拿出我的鸡肋收藏,希望有人可以用的上。它是以秒为单位的,即:sleep 10 就表示延时10秒。
此帖被 +1 点积分 点击查看详情
评分人:【 redtek 】 分数: +1 时间:2006-11-21 02:21 PM
附件 1: sleep.rar (2006-11-21 02:09 PM, 13.73 K,下载次数: 350)
哈哈 本人也有这个方面收藏,特发烧下,附件里有 wait.com 和bk.com 两个命令
其中 wait 和上面仁兄 sleep.exe 用法相同不做说明
在此小弟特推荐bk.com 感觉功能比上面更强点
如:5秒后自动敲回车键 即: bk 5 en
更多的我就不说拉 运行 bk /? 查看就可以拉 (在dos下才可以哦)
http://zhenlove.com.cn/cndos/fileup/files/dos延迟命令.rar
Batch Delay Command —— sleep (My Obsolete Collection)
When I first started with DOS, I made great efforts to find sleep.exe and fortunately found it. I have seen many methods for batch delays on the internet, and there are even more highlights in this forum, but few people use the sleep command (not VBS), so I had to keep it in my collection.
Recently, I saw someone recommend sleep.exe (which is in milliseconds), which aroused my interest. I had the nerve to take out my obsolete collection and hope someone can make use of it. It is in seconds, that is: sleep 10 means a delay of 10 seconds.
This post was given +1 point. Click to view details
Scorer: Score: +1 Time: 2006-11-21 02:21 PM
Attachment 1: sleep.rar (2006-11-21 02:09 PM, 13.73 K, Downloads: 350)
Haha, I also have this kind of collection. I'm really into it. There are two commands, wait.com and bk.com, in the attachment.
Among them, wait is the same as the above-mentioned sleep.exe, so no explanation is needed.
Here, I specially recommend bk.com. I feel that its function is stronger than the above.
For example: automatically press the Enter key after 5 seconds, that is: bk 5 en.
I won't say more. You can view it by running bk /? (only under DOS).
http://zhenlove.com.cn/cndos/fileup/files/dosDelay Command.rar