![]() |
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-11-10 12:14 |
47,815 topics / 349,930 posts / today 0 new / 48,291 members |
| DOS批处理 & 脚本技术(批处理室) » Batch delay command - sleep (my chicken rib collection) |
| Printable Version 50,029 / 317 |
| Floor16 weilong888 | Posted 2006-12-22 02:07 |
| 银牌会员 Posts 548 Credits 1,270 | |
|
This command is a good thing.
|
|
| Floor17 flamey | Posted 2007-01-01 04:02 |
| 初级用户 Posts 74 Credits 152 | |
| Floor18 arica1985e | Posted 2007-01-07 02:31 |
| 新手上路 Posts 2 Credits 4 | |
Originally posted by ccwan at 2006-11-21 02:09 PM: I also searched for a long time. Oh`` it's called sleep originally |
|
| Floor19 badbad | Posted 2007-01-07 11:56 |
| 新手上路 Posts 1 Credits 2 | |
|
Private goods are really different`````````
|
|
| Floor20 ccuu668 | Posted 2007-01-21 10:27 |
| 初级用户 Posts 29 Credits 57 | |
|
Learned. I have the tool but don't know how to use it. Rarely come into contact with script technology.
|
|
| Floor21 czwlay | Posted 2007-01-22 03:21 |
| 初级用户 Posts 35 Credits 94 | |
|
Using timeout is better. sleep will cause garbled characters!!!
|
|
| Floor22 htysm | Posted 2007-01-22 05:19 |
| 高级用户 Posts 415 Credits 866 | |
|
There are so many DOS commands, but there is actually no delay command, and we have to rely on third-party programs.
|
|
| Floor23 zch1366 | Posted 2007-01-22 07:47 |
| 中级用户 Posts 148 Credits 326 | |
|
Good things are all hoarded privately
|
|
| Floor24 qingfushuan | Posted 2007-01-23 06:53 |
| 高级用户 Posts 327 Credits 502 | |
Originally posted by htysm at 2007-1-21 04:19 PM: I don't agree with this view: The message sending interval of ping has a time precision of 1 second and is used on the Windows 9x/WinNT series platforms. Your Windows system needs to have the TCP/IP protocol of the network card normally installed. There are two schemes: (1) Use the interval time between two message sends of ping. When ping sends multiple messages, after getting the response of the previous message, it will wait for 1 second before sending the next message. The response time varies depending on the model, system, and network configuration. Among them, the IP address 127.0.0.1 is especially crucial because it responds immediately, so it is relatively constant. Most other addresses will have significant differences. This method requires waiting a longer time. The number of messages to send is one more than the waiting time because the first message does not wait. The IP address must be 127.0.0.1. The program to wait for 2 seconds is as follows: :: According to the planting tree principle, the number after n is one more than the pause seconds ping -n 3 127.0.0.1>nul (2) Use the maximum waiting time of ping. ping sends an "Internet Control Message Protocol (ICMP)" echo request message to 0.0.0.1. Because 0.0.0.1 is an IP address that cannot respond to ping requests, by default, ping will wait for a certain maximum response time - it stops waiting after 4 seconds, and -w can change this maximum response time for each message send. And if the IP address is changed to 127.0.0.1 or other IP addresses with very short response times that respond immediately, then -w loses its effect because the waiting time for each send will not reach the maximum response time, and the delay will be shortened at this time. This method requires waiting a longer time. You can directly use -w to specify, but you need to subtract 500 milliseconds (the reason is not known), and the IP address must be an address that does not respond to requests. The program to wait for 2 seconds is as follows: ping -n 2 -w 500 0.0.0.1>nul echo Wscript.Sleep Wscript.Arguments(0) * 1000 >c:\delay.vbs start /w c:\delay.vbs 15 --------------Create a 15-second delay |
|
| Floor25 daijie | Posted 2007-03-06 03:59 |
| 新手上路 Posts 3 Credits 7 | |
|
New here, please take care of me
|
|
| Floor26 kongen | Posted 2007-03-06 05:54 |
| 新手上路 Posts 4 Credits 7 | |
|
Thanks
|
|
| Floor27 dongzhong | Posted 2007-03-06 07:01 |
| 新手上路 Posts 4 Credits 8 | |
|
Good stuff, hope to download! Thanks to the LZ for sharing!
|
|
| Floor28 chengfdn | Posted 2007-03-07 05:16 |
| 初级用户 Posts 12 Credits 26 | |
|
Hey, poor foundation, can't understand the 9th floor
|
|
| Floor29 icehui | Posted 2007-03-07 08:07 |
| 初级用户 Posts 12 Credits 25 | |
|
ding ! Now I don't know what to do. I'll know later!!
|
|
| Floor30 qq13038276 | Posted 2007-03-09 00:43 |
| 新手上路 Posts 1 Credits 2 | |
| Prev 1 2 3 4 5 … 22 Next |
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |