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-08-01 16:50
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » Question for the experts: in DOS programming, how should delays be handled? View 1,195 Replies 7
Original Poster Posted 2003-09-15 00:00 ·  中国 江苏 常州 联通
初级用户
Credits 140
Posts 7
Joined 2003-09-04 00:00
22-year member
UID 9436
Gender Male
Status Offline
In DOS programming (BAT files), if I need to add a delay, what command should I use? Thanks!
Floor 2 Posted 2003-09-15 00:00 ·  美国
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
Use a command like WAIT, for example: WAIT 3
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Floor 3 Posted 2006-05-09 12:17 ·  中国 四川 成都 联通
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline
Use Ping
Floor 4 Posted 2006-05-09 15:24 ·  中国 四川 雅安 电信
初级用户
Credits 88
Posts 45
Joined 2005-09-07 22:43
20-year member
UID 42336
Gender Male
Status Offline
For a manual delay, just call a pause
pause
Press any key to continue
Floor 5 Posted 2006-05-11 01:39 ·  中国 香港 环球全域电讯
初级用户
★★
Credits 121
Posts 61
Joined 2006-04-18 00:09
20-year member
UID 54007
Gender Male
From HK
Status Offline
I usually use choice
Floor 6 Posted 2006-05-13 18:13 ·  中国 四川 南充 电信
超级版主
★★★★
我爱DOS
Credits 5,310
Posts 2,044
Joined 2005-09-26 12:00
20-year member
UID 42843
Gender Male
From 四川南充
Status Offline
Floor 7 Posted 2006-05-30 10:14 ·  中国 广东 阳江 电信
新手上路
Credits 4
Posts 2
Joined 2006-05-30 09:59
20-year member
UID 56240
Status Offline
Floor 8 Posted 2006-05-30 13:02 ·  中国 湖北 荆门 电信
荣誉版主
★★★
Credits 2,013
Posts 718
Joined 2006-02-18 07:07
20-year member
UID 50550
Status Offline
Hm, AMD666, please specify the runtime environment (2003?). Under the current mainstream operating system XP pro sp2, there is no timeout command by default.
This is an old thread from '03—which expert dug it back up? As for the delay issue, you can refer to the thread in willsort's signature.
Forum Jump: