中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-09-23 16:42
47,812 topics / 349,917 posts / today 0 new / 48,274 members
DOS批处理 & 脚本技术(批处理室) » Question for the experts: in DOS programming, how should delays be handled?
Printable Version  1,281 / 7
Floor1 gjg Posted 2003-09-15 00:00
初级用户 Posts 7 Credits 140
In DOS programming (BAT files), if I need to add a delay, what command should I use? Thanks!
Floor2 Wengier Posted 2003-09-15 00:00
系统支持 Posts 10,521 Credits 27,736
Use a command like WAIT, for example: WAIT 3
Floor3 electronixtar Posted 2006-05-09 12:17
铂金会员 Posts 2,672 Credits 7,493
Use Ping
Floor4 zlgs Posted 2006-05-09 15:24
初级用户 Posts 45 Credits 88
For a manual delay, just call a pause
pause
Press any key to continue
Floor5 tsenix Posted 2006-05-11 01:39
初级用户 Posts 61 Credits 121 From HK
I usually use choice
Floor6 不得不爱 Posted 2006-05-13 18:13
超级版主 Posts 2,044 Credits 5,310 From 四川南充
Floor7 AMD666 Posted 2006-05-30 10:14
新手上路 Posts 2 Credits 4
Floor8 3742668 Posted 2006-05-30 13:02
荣誉版主 Posts 718 Credits 2,013
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.
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023