|
mac007cn
初级用户
 
积分 46
发帖 18
注册 2009-4-3
状态 离线
|
 『楼 主』:
NT命令行下的一个延时小工具wait.exe
使用 LLM 解释/回答一下
好久没来cn-dos了。最近在NT(2k xp 2k3等等)命令行下写批处理,用到延时,不喜欢用ping -n X 127.1 >nul ,后来google到了一个貌似32位的延时工具wait.exe,不敢独享,也请勿见笑。
wait.exe个头不小,有32K,不知道能否压缩。
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.
附件
1: Wait100.zip (2010-3-11 16:13, 13.1 KiB,下载次数: 81)
|
|
2010-3-11 16:13 |
|
|
Vista2008
版主
       
积分 707
发帖 287
注册 2010-1-13 来自 尖竹汶府
状态 离线
|
|
2010-4-14 17:26 |
|
|
Roy
管理员
          專業島民
积分 4869
发帖 1633
注册 2002-12-10
状态 离线
|
|
2010-4-14 18:46 |
|
|
doslike
版主
        系统收藏家
积分 326
发帖 285
注册 2010-2-22 来自 黑龙江省
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
sleep.vbs
wscript.sleep %1
不知道对不对
sleep.vbs
wscript.sleep %1
Not sure if it's correct
|
|
2010-6-5 18:50 |
|
|
sygate
新手上路

积分 12
发帖 9
注册 2006-4-21
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
2000 Resource Kit现在哪里有下载?
我找了好久了
Where can I download the 2000 Resource Kit now? I've been looking for it for a long time.
|
|
2010-6-19 13:54 |
|
|
netwinxp
高级用户
   
积分 741
发帖 366
注册 2007-7-25
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
用sleep()获得的延迟精度很低,而且颇为消耗CPU占用,如果要实现毫秒级甚至微秒级的则要用用QueryPerformanceFrequency()和QueryPerformanceCounter()函数来实现。
当然LZ所说的那种应用sleep()函数足矣,过了世界杯我用masm32编一个,估计最大也就几KB。
Last edited by netwinxp on 2010-6-29 at 21:32 ]
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 ]
|
|
2010-6-29 21:30 |
|
|
Vista2008
版主
       
积分 707
发帖 287
注册 2010-1-13 来自 尖竹汶府
状态 离线
|
|
2010-7-9 07:09 |
|
|
martin325
银牌会员
    
积分 1582
发帖 603
注册 2006-2-20
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
我用WAIT4,不到2KB
见附件
I use WAIT4, less than 2KB
See attachment
附件
1: WAIT4.rar (2010-9-12 15:37, 1.42 KiB, 下载附件所需积分 1 点
,下载次数: 6)
|

非凡财富Q群:62667973
@投资研讨,共享财富@ |
|
2010-9-12 15:37 |
|
|
wxs81514
初级用户
 
积分 118
发帖 52
注册 2008-5-7
状态 离线
|
『第 9 楼』:
使用 LLM 解释/回答一下
到底哪个占资源少点??一个一个下来试下...........
Which one occupies fewer resources?? Try them one by one...........
|
|
2010-11-9 17:23 |
|