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-20 21:45
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » Are there any more clever techniques for batch processing delays? DigestI View 32,805 Replies 71
Floor 46 Posted 2007-07-28 20:25 ·  中国 福建 厦门 电信
高级用户
★★★
Credits 741
Posts 366
Joined 2007-07-25 19:11
18-year member
UID 94024
Gender Male
Status Offline
For longer delays, if you are worried about inaccuracy, you can use time /T to get the actual time
Floor 47 Posted 2007-08-19 16:22 ·  中国 江西 吉安 电信
初级用户
Credits 41
Posts 20
Joined 2007-03-05 00:45
19-year member
UID 80788
Gender Male
Status Offline
@ECHO OFF
SETLOCAL EnableExtensions
CALL :ProcDelay 200
ECHO %TIME%
GOTO :EOF

:ProcDelay delayMSec_
SETLOCAL EnableExtensions
FOR /f "tokens=1-4 delims=:. " %%h IN ("%TIME%") DO SET start_=%%h%%i%%j%%k
:_procwaitloop
FOR /f "tokens=1-4 delims=:. " %%h IN ("%TIME%") DO SET now_=%%h%%i%%j%%k
SET /a diff_=%now_%-%start_%
IF %diff_% LSS %1 GOTO _procwaitloop
ENDLOCAL & GOTO :EOF
:EOF
Floor 48 Posted 2007-08-24 10:17 ·  中国 海南 电信
新手上路
Credits 4
Posts 3
Joined 2007-08-06 17:33
18-year member
UID 94742
Gender Male
Status Offline
Because you need to install a network card for the TCP/IP protocol to be automatically installed, and the ping tool works with the TCP/IP protocol. So generally, ping won't work on a computer without a network card.
Floor 49 Posted 2007-10-26 18:26 ·  中国 湖南 益阳 电信
新手上路
Credits 10
Posts 5
Joined 2007-10-26 09:40
18-year member
UID 100811
Gender Male
Status Offline
Floor 50 Posted 2007-12-03 21:19 ·  中国 天津 电信
初级用户
Credits 31
Posts 17
Joined 2007-10-31 22:38
18-year member
UID 101331
Gender Male
Status Offline
:: Sleep.bat - Sleep/Delay/Wait n seconds
:: Herbert Kleebauer(Germany) - 2005/05/29
:: Modified by Will Sort - 2005/06/02
@echo off
echo q | debug>nul
echo Bj@jzh`0X-`/PPPPPPa(DE(DM(DO(Dh(Ls(Lu(LX(LeZRR]EEEUYRX2Dx=>sleep.com
echo 0DxFP,0Xx.t0P,=XtGsB4o@$?PIyU WwX0GwUY Wv;ovBX2Gv0ExGIuht6>>sleep.com
echo T}{z~~@GwkBG@OEKcUt`~}@MqqBsy?seHB~_Phxr?@zAB`LrPEyoDt@Cj?>>sleep.com
echo pky_jN@QEKpEt@ij?jySjN@REKpEt@jj?jyGjN@SEKkjtlGuNw?p@pjirz>>sleep.com
echo LFvAURQ?OYLTQ@@?~QCoOL~RDU@?aU?@{QOq?@}IKuNWpe~FpeQFwH?Vkk>>sleep.com
echo _GSqoCvH{OjeOSeIQRmA@KnEFB?p??mcjNne~B?M??QhetLBgBPHexh@e=>>sleep.com
echo EsOgwTLbLK?sFU`?LDOD@@K@xO?SUudA?_FKJ@N?KD@?UA??O}HCQOQ??R>>sleep.com
echo _OQOL?CLA?CEU?_FU?UAQ?UBD?LOC?ORO?UOL?UOD?OOI?UgL?LOR@YUO?>>sleep.com
echo dsmSQswDOR[BQAQ?LUA?_L_oUNUScLOOuLOODUO?UOE@OwH?UOQ?DJTSDM>>sleep.com
echo QTqrK@kcmSULkPcLOOuLOOFUO?hwDTqOsTdbnTQrrDsdFTlnBTm`lThKcT>>sleep.com
echo @dmTkRQSoddTT~?K?OCOQp?o??Gds?wOw?PGAtaCHQvNntQv_w?A?it\EH>>sleep.com
echo {zpQpKGk?Jbs?FqokOH{T?jPvP@IQBDFAN?OHROL?Kj??pd~aN?OHROd?G>>sleep.com
echo Q??PGT~B??OC~?ipO?T?~U?p~cUo0x>>sleep.com
sleep.com>sleep.exe

Running this BAT, you can get sleep.com and sleep.exe. The former can run under DOS6 - 7, and the latter can run under the CMD of XP.
Floor 51 Posted 2007-12-04 22:49 ·  中国 上海 东方有线
新手上路
Credits 2
Posts 1
Joined 2007-02-04 12:10
19-year member
UID 78618
Gender Male
Status Offline
Little brother is a novice, learned
Floor 52 Posted 2007-12-29 18:07 ·  中国 北京 鹏博士
新手上路
Credits 2
Posts 1
Joined 2007-12-29 17:23
18-year member
UID 107140
Gender Male
Status Offline
Thank you so much
Floor 53 Posted 2007-12-30 15:35 ·  中国 广东 广州 番禺区 电信
初级用户
Credits 86
Posts 45
Joined 2007-07-26 17:35
18-year member
UID 94082
Gender Male
Status Offline
The choice command, I think it's better than ping, heh heh
Floor 54 Posted 2008-01-09 10:57 ·  中国 广东 广州 电信
新手上路
Credits 2
Posts 1
Joined 2008-01-09 09:30
18-year member
UID 108063
Gender Male
Status Offline
Thanks to the upstairs for providing another delay tool again
Floor 55 Posted 2008-02-01 21:59 ·  中国 吉林 吉林市 联通
中级用户
★★
Credits 307
Posts 130
Joined 2008-02-01 21:29
18-year member
UID 109981
Gender Male
Status Offline
Got a delay tool today
Floor 56 Posted 2008-02-28 19:19 ·  中国 广东 东莞 联通
新手上路
Credits 2
Posts 1
Joined 2008-02-28 18:57
18-year member
UID 111658
Gender Male
Status Offline
Thank you, the original poster. This is the only forum on the entire network that has it.
Floor 57 Posted 2008-03-03 13:56 ·  中国 北京 朝阳区 联通
新手上路
Credits 5
Posts 4
Joined 2006-11-11 07:19
19-year member
UID 70209
Gender Male
Status Offline
The experts are extremely amazing!
Floor 58 Posted 2008-03-04 10:44 ·  中国 湖北 武汉 电信
新手上路
Credits 10
Posts 5
Joined 2007-12-29 11:26
18-year member
UID 107107
Gender Male
Status Offline
Downloading it first for my collection!
Floor 59 Posted 2008-03-05 21:55 ·  中国 北京 阿里云BGP数据中心
初级用户
Credits 64
Posts 37
Joined 2007-03-14 03:38
19-year member
UID 81659
Gender Male
Status Offline
The experts are so amazing...
Learned...
Floor 60 Posted 2008-05-02 01:08 ·  中国 广东 揭阳 联通
初级用户
Credits 65
Posts 29
Joined 2007-10-14 14:35
18-year member
UID 99717
Gender Male
Status Offline
It seems that if the delay is too long, many of them are no longer accurate
Forum Jump: