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 14:45
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » How to make a batch process pause for five seconds and then continue running View 3,373 Replies 8
Original Poster Posted 2005-07-19 07:12 ·  中国 福建 福州 电信
新手上路
Credits 7
Posts 1
Joined 2005-07-16 14:36
21-year member
UID 40772
Status Offline
Under DOS
I want to make some explanatory text I wrote display for 5 seconds (that is, pause for 5 seconds) during batch processing, instead of flashing by, and then automatically run other programs.

Please help the experts! Please write it in detail. I am a novice, thank you!

---------- Edited by willsort ----------
Original title: Help Batch processing
---------- Edited by willsort ----------


[ Last edited by willsort on 2005-8-19 at 16:58 ]
Floor 2 Posted 2005-07-21 15:52 ·  中国 广东 广州 白云区 电信
金牌会员
★★★★
D◎$ Fαп
Credits 4,562
Posts 1,883
Joined 2004-01-19 00:00
22-year member
UID 15812
Gender Male
From 广东广州
Status Offline
Method 1: Use the choice command:

...
ECHO Hello. Welcome to China DOS Union.
CHOICE /T:Y,5
...

Method 2: Implement delay using the Wait.com program in the MSDOS 7.1 super boot disk:

...
ECHO Hello. Welcome to China DOS Union.
WAIT 5
...
----====≡≡≡≡ 我的至爱,永远是MSDOS!≡≡≡≡====----
Floor 3 Posted 2005-07-21 16:13 ·  中国 上海 徐汇区 电信
银牌会员
★★★
永遠的DOS~~~
Credits 1,200
Posts 466
Joined 2005-02-01 00:00
21-year member
UID 35867
Gender Male
From 上海
Status Offline
Hehe, I also have a very lazy method, as long as you have Windows installed.
...
ECHO Hello. Welcome to China DOS Union.
dir %windir% /s /a >nul
...
It will take quite a while to dir all the files and subdirectories in %windir% : )
32位才是DOS未来的希望
个人网志:http://sololand.moe
Floor 4 Posted 2005-07-21 21:07 ·  中国 广东 广州 白云区 电信
金牌会员
★★★★
D◎$ Fαп
Credits 4,562
Posts 1,883
Joined 2004-01-19 00:00
22-year member
UID 15812
Gender Male
From 广东广州
Status Offline
I just tried the method upstairs. It took 15 seconds to do a dir in the DOS mode of Windows. If it's in pure DOS, it would take at least 20 seconds, right?! Sweat -_-|||

This is a relatively stupid method, heh heh. If the batch processing delays every time in this way, people who don't know will think there's a virus doing deltree when they see the hard disk keeps making noise and the hard disk light keeps flashing...
----====≡≡≡≡ 我的至爱,永远是MSDOS!≡≡≡≡====----
Floor 5 Posted 2005-08-08 16:28 ·  中国 山东 泰安 肥城市 联通
新手上路
Credits 7
Posts 5
Joined 2005-08-08 15:18
20-year member
UID 41450
Gender Male
Status Offline
Originally posted by JonePeng at 2005-7-21 21:07:
I just tried the method above, and in the DOS mode of Windows, it took 15 seconds to do a dir. If it's in pure DOS, it would take at least 20 seconds?! Sweat -_-|||

This is a relatively stupid method, uh...


Hehe
Floor 6 Posted 2005-08-16 16:52 ·  中国 新疆 克拉玛依 移动
初级用户
Credits 24
Posts 10
Joined 2005-08-15 23:58
20-year member
UID 41688
Status Offline
What does " >nul " mean in the sentence "dir %windir% /s /a >nul"?
Floor 7 Posted 2005-08-16 22:05 ·  中国 广东 广州 白云区 电信
金牌会员
★★★★
D◎$ Fαп
Credits 4,562
Posts 1,883
Joined 2004-01-19 00:00
22-year member
UID 15812
Gender Male
From 广东广州
Status Offline
Re jgty728:

To indicate not displaying the command output information, ">NUL" is applicable to all commands.
----====≡≡≡≡ 我的至爱,永远是MSDOS!≡≡≡≡====----
Floor 8 Posted 2005-08-17 14:31 ·  中国 河北 石家庄 联通
铂金会员
★★★★
网络独行侠
Credits 6,962
Posts 2,753
Joined 2003-04-16 00:00
23-year member
UID 1565
Gender Male
From 河北保定
Status Offline
Passing by, but I remind the poster to write a good title for the post, such as How to make a batch script pause for five seconds and then continue running.
偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人!
Floor 9 Posted 2005-08-19 18:32 ·  中国 山西 运城 中移铁通
元老会员
★★★★
Batchinger
Credits 4,432
Posts 1,512
Joined 2002-10-18 00:00
23-year member
UID 19
Gender Male
Status Offline
Re lin516:

Please refer to the following link:

{8905}A Strange Case of Batch Programming The Clock topic on floor 4
※ Batchinger 致 Bat Fans:请访问 批处理编程的异类 ,欢迎交流与共享批处理编程心得!
Forum Jump: