|
lin516
新手上路

积分 7
发帖 1
注册 2005-7-16
状态 离线
|
『楼 主』:
如何让批处理暂停五秒再继续运行
使用 LLM 解释/回答一下
DOS下
我想实现在批处理的时候,让自己写的一些说明文字显示5秒(即停顿5秒),而不是一闪而过,然后再自动运行其他的程序。
请高手帮帮忙!麻烦写的详细点,小的是个新手,谢谢!
---------- Edited by willsort ----------
原标题:求助 批处理
---------- Edited by willsort ----------
Last edited by willsort on 2005-8-19 at 16:58 ]
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 ]
|
|
2005-7-19 07:12 |
|
|
JonePeng
金牌会员
      D◎$ Fαп
积分 4562
发帖 1883
注册 2004-1-19 来自 广东广州
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
方法一:用 choice 命令:
...
ECHO Hello. Welcome to China DOS Union.
CHOICE /T:Y,5
...
方法二:用MSDOS 7.1超级启动盘里的Wait.com程序实现延时:
...
ECHO Hello. Welcome to China DOS Union.
WAIT 5
...
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!≡≡≡≡====----
|
|
2005-7-21 15:52 |
|
|
brglng
银牌会员
     永遠的DOS~~~
积分 1200
发帖 466
注册 2005-2-1 来自 上海
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
呵呵,我还有种很赖的方法,只要你装了Windows。
...
ECHO Hello. Welcome to China DOS Union.
dir %windir% /s /a >nul
...
把%windir%所有的文件、子目录的内容都dir一遍可要不少时间哦。:)
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 |
|
2005-7-21 16:13 |
|
|
JonePeng
金牌会员
      D◎$ Fαп
积分 4562
发帖 1883
注册 2004-1-19 来自 广东广州
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
我刚试了楼上的方法,在Windows的DOS方式下 dir 一遍竟然要15秒,要是到纯DOS下岂不是要至少20秒?! 汗 -_-|||
这是比较笨的方法啊,呵呵,如果批处理每次都以此来延时,不知情的人一看到硬盘不停地响、硬盘灯不断闪烁,会以为是病毒在 deltree ……
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!≡≡≡≡====----
|
|
2005-7-21 21:07 |
|
|
pandawy
新手上路

积分 7
发帖 5
注册 2005-8-8
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
Originally posted by JonePeng at 2005-7-21 21:07:
我刚试了楼上的方法,在Windows的DOS方式下 dir 一遍竟然要15秒,要是到纯DOS下岂不是要至少20秒?! 汗 -_-|||
这是比较笨的方法啊,呠...
呵呵<img src="images/smilies/face-smile-big.png" align="absmiddle" border="0">
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 :D
|
|
2005-8-8 16:28 |
|
|
jgty728
初级用户
 
积分 24
发帖 10
注册 2005-8-15
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
请问dir %windir% /s /a >nul这句里面>nul是什么意思?
What does " >nul " mean in the sentence "dir %windir% /s /a >nul"?
|
|
2005-8-16 16:52 |
|
|
JonePeng
金牌会员
      D◎$ Fαп
积分 4562
发帖 1883
注册 2004-1-19 来自 广东广州
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
Re jgty728:
表示不显示命令输出的信息,“>NUL”适用于所有命令。
Re jgty728:
To indicate not displaying the command output information, ">NUL" is applicable to all commands.
|

----====≡≡≡≡ 我的至爱,永远是MSDOS!≡≡≡≡====----
|
|
2005-8-16 22:05 |
|
|
Climbing
铂金会员
       网络独行侠
积分 6962
发帖 2753
注册 2003-4-16 来自 河北保定
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
路过,但我提醒楼主写好帖子的标题,例如:如何让批处理暂停五秒再继续运行。
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.
|

偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人!
|
|
2005-8-17 14:31 |
|
|
willsort
元老会员
         Batchinger
积分 4432
发帖 1512
注册 2002-10-18
状态 离线
|
|
2005-8-19 18:32 |
|