China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-07-01 11:48
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » What is the pause command in DOS commands? View 3,891 Replies 7
Original Poster Posted 2006-12-20 13:18 ·  中国 北京 海淀区 联通
初级用户
Credits 25
Posts 14
Joined 2006-12-20 11:47
19-year member
UID 74043
Gender Male
Status Offline
For example, I want to wait for 10 seconds before executing the next statement.
Floor 2 Posted 2006-12-20 22:29 ·  中国 河北 石家庄 联通
初级用户
★★
Credits 123
Posts 54
Joined 2006-12-01 01:16
19-year member
UID 72206
Gender Male
Status Offline
Floor 3 Posted 2006-12-21 01:49 ·  中国 北京 联通(数字北京大厦IDC机房)
初级用户
Credits 25
Posts 14
Joined 2006-12-20 11:47
19-year member
UID 74043
Gender Male
Status Offline
That command needs to be manually entered and pressed Enter, which is not good. Is there any command or something that can temporarily wait for 10 seconds and then continue?
Floor 4 Posted 2006-12-21 03:58 ·  中国 河北 廊坊 三河市 移动
金牌会员
★★★★
Credits 2,725
Posts 1,160
Joined 2006-09-23 12:00
19-year member
UID 63486
From 河北廊坊
Status Offline
sleep There are two types in the following post: one in seconds and the other in milliseconds.

http://www.cn-dos.net/forum/viewthread.php?tid=24955
三人行,必有吾师焉。 学然后知不足,教然后知困,然后能自强也。
Floor 5 Posted 2006-12-21 12:23 ·  中国 北京 海淀区 联通
初级用户
Credits 25
Posts 14
Joined 2006-12-20 11:47
19-year member
UID 74043
Gender Male
Status Offline
Got it, plus bookmarked, thanks~
Floor 6 Posted 2006-12-22 05:52 ·  中国 江苏 南京 电信
高级用户
★★
Credits 623
Posts 214
Joined 2006-09-22 20:48
19-year member
UID 63387
Status Offline
First method: choice /t 10 /d y
Second method: timeout.exe built into Windows 2003
timeout /t 10
Download: http://tianzizhi.disk365.cn/

[ Last edited by tianzizhi on 2006-12-22 at 05:55 AM ]
Floor 7 Posted 2006-12-23 09:04 ·  中国 山东 烟台 联通
初级用户
Credits 158
Posts 15
Joined 2004-05-11 00:00
22-year member
UID 24054
Gender Male
Status Offline
If it is under the batch command, you can use sound.exe (under MS-DOS).
Syntax: SOUND 10
After beeping 10 times, that is, after 10 seconds, continue to the next command line
Floor 8 Posted 2007-06-09 10:22 ·  中国 湖南 湘潭 电信
新手上路
Credits 18
Posts 9
Joined 2007-06-02 10:51
19-year member
UID 90030
Gender Male
Status Offline
Using the real-time clock of DOS, that is, ports 70H and 71H, hardware timing, absolutely accurate, up to millisecond level.
Forum Jump: