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-06-26 01:53
中国DOS联盟论坛 » 其它操作系统综合讨论区 » A small delay tool wait.exe under the NT command line View 3,106 Replies 8
Original Poster Posted 2010-03-11 16:13 ·  中国 山东 聊城 联通
初级用户
Credits 46
Posts 18
Joined 2009-04-03 11:33
17-year member
UID 142017
Gender Male
Status Offline
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.
Recent Ratings for This Post ( 1 in total) Click for details
RaterScoreTime
fujianabc +6 2010-03-17 09:13
Attachments
Wait100.zip (13.1 KiB, Downloads: 81)
Floor 2 Posted 2010-04-14 17:26 ·  中国 辽宁 沈阳 电信
版主
★★
Credits 707
Posts 287
Joined 2010-01-13 12:05
16-year member
UID 158583
Gender Female
From 尖竹汶府
Status Offline
Look, what is it
Floor 3 Posted 2010-04-14 18:46 ·  中国 香港 城市电讯有限公司
管理员
★★★★
專業島民
Credits 4,869
Posts 1,633
Joined 2002-12-10 00:00
23-year member
UID 465
Gender Male
Status Offline
The sleep.exe in the Resource Kit has the same function.
我的網站:http://mw16.2ya.com/ 我的網誌: http://scrappedblog.blogspot.com/
~
我的Winamp正在播放的歌曲:
Floor 4 Posted 2010-06-05 18:50 ·  中国 黑龙江 哈尔滨 联通
版主
★★
系统收藏家
Credits 326
Posts 285
Joined 2010-02-22 00:00
16-year member
UID 160972
Gender Male
From 黑龙江省
Status Offline
sleep.vbs
wscript.sleep %1
Not sure if it's correct
Floor 5 Posted 2010-06-19 13:54 ·  中国 山东 青岛 联通
新手上路
Credits 12
Posts 9
Joined 2006-04-21 09:20
20-year member
UID 54178
Status Offline
Where can I download the 2000 Resource Kit now? I've been looking for it for a long time.
Floor 6 Posted 2010-06-29 21:30 ·  中国 福建 厦门 电信
高级用户
★★★
Credits 741
Posts 366
Joined 2007-07-25 19:11
18-year member
UID 94024
Gender Male
Status Offline
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 ]
Floor 7 Posted 2010-07-09 07:09 ·  中国 辽宁 鞍山 电信
版主
★★
Credits 707
Posts 287
Joined 2010-01-13 12:05
16-year member
UID 158583
Gender Female
From 尖竹汶府
Status Offline
弟控才是王道阿
Floor 8 Posted 2010-09-12 15:37 ·  中国 浙江 杭州 电信
银牌会员
★★★
Credits 1,582
Posts 603
Joined 2006-02-20 20:26
20-year member
UID 50690
Status Offline
I use WAIT4, less than 2KB
See attachment
Attachments
WAIT4.rar (1.42 KiB, Credits to download 1 pts, Downloads: 6)
非凡财富Q群:62667973
@投资研讨,共享财富@
Floor 9 Posted 2010-11-09 17:23 ·  中国 广东 东莞 电信
初级用户
★★
Credits 118
Posts 52
Joined 2008-05-07 09:39
18-year member
UID 117968
Gender Male
Status Offline
Which one occupies fewer resources?? Try them one by one...........
Forum Jump: