![]() |
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-26 15:49 |
47,812 topics / 349,910 posts / today 0 new / 48,264 members |
| 其它操作系统综合讨论区 » A small delay tool wait.exe under the NT command line |
| Printable Version 3,320 / 8 |
| Floor1 mac007cn | Posted 2010-03-11 16:13 |
| 初级用户 Posts 18 Credits 46 | |
|
I haven't been to cn-dos for a long time. Recently, when writing batch scripts under the command line of NT (2k, xp, 2k3, etc.), I used delay. I didn't like using ping -n X 127.1 >nul. Later, I found a delay tool wait.exe that seemed to be 32-bit on Google. I don't dare to keep it to myself, and please don't laugh.
The size of wait.exe is quite large, 32K. I don't know if it can be compressed. Attachments Wait100.zip (13.1 KiB) |
|
| Floor2 Vista2008 | Posted 2010-04-14 17:26 |
| 版主 Posts 287 Credits 709 From 尖竹汶府 | |
|
Look, what is it
|
|
| Floor3 Roy | Posted 2010-04-14 18:46 |
| 管理员 Posts 1,633 Credits 4,869 | |
|
The sleep.exe in the Resource Kit has the same function.
|
|
| Floor4 doslike | Posted 2010-06-05 18:50 |
| 版主 Posts 285 Credits 326 From 黑龙江省 | |
|
sleep.vbs
wscript.sleep %1 Not sure if it's correct |
|
| Floor5 sygate | Posted 2010-06-19 13:54 |
| 新手上路 Posts 9 Credits 12 | |
|
Where can I download the 2000 Resource Kit now? I've been looking for it for a long time.
|
|
| Floor6 netwinxp | Posted 2010-06-29 21:30 |
| 高级用户 Posts 366 Credits 741 | |
|
The delay obtained with sleep() has very low precision and consumes quite a bit of CPU usage. If you want to achieve millisecond or even microsecond level, you need to use the QueryPerformanceFrequency() and QueryPerformanceCounter() functions.
Of course, the kind of application the LZ mentioned can be done with the sleep() function. After the World Cup, I'll compile one with masm32, and it's estimated to be at most a few KB. [ Last edited by netwinxp on 2010-6-29 at 21:32 ] |
|
| Floor7 Vista2008 | Posted 2010-07-09 07:09 |
| 版主 Posts 287 Credits 709 From 尖竹汶府 | |
| Floor8 martin325 | Posted 2010-09-12 15:37 |
| 银牌会员 Posts 603 Credits 1,582 | |
|
I use WAIT4, less than 2KB
See attachment Attachments WAIT4.rar (1.42 KiB) |
|
| Floor9 wxs81514 | Posted 2010-11-09 17:23 |
| 初级用户 Posts 52 Credits 118 | |
|
Which one occupies fewer resources?? Try them one by one...........
|
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |