![]() |
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-08-18 22:38 |
47,814 topics / 349,908 posts / today 1 new / 48,259 members |
| DOS疑难解答 & 问题讨论 (解答室) » What is the pause command in DOS commands? |
| Printable Version 3,950 / 7 |
| Floor1 zjjzh | Posted 2006-12-20 13:18 |
| 初级用户 Posts 14 Credits 25 | |
|
For example, I want to wait for 10 seconds before executing the next statement.
|
|
| Floor2 grapeskin | Posted 2006-12-20 22:29 |
| 初级用户 Posts 54 Credits 123 | |
| Floor3 zjjzh | Posted 2006-12-21 01:49 |
| 初级用户 Posts 14 Credits 25 | |
|
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?
|
|
| Floor4 ccwan | Posted 2006-12-21 03:58 |
| 金牌会员 Posts 1,160 Credits 2,725 From 河北廊坊 | |
|
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 |
|
| Floor5 zjjzh | Posted 2006-12-21 12:23 |
| 初级用户 Posts 14 Credits 25 | |
|
Got it, plus bookmarked, thanks~
|
|
| Floor6 tianzizhi | Posted 2006-12-22 05:52 |
| 高级用户 Posts 214 Credits 623 | |
|
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 ] |
|
| Floor7 wmysqj | Posted 2006-12-23 09:04 |
| 初级用户 Posts 15 Credits 158 | |
|
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 |
|
| Floor8 heling | Posted 2007-06-09 10:22 |
| 新手上路 Posts 9 Credits 18 | |
|
Using the real-time clock of DOS, that is, ports 70H and 71H, hardware timing, absolutely accurate, up to millisecond level.
|
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |