中国DOS联盟论坛

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 11:38
47,815 topics / 349,930 posts / today 0 new / 48,291 members
DOS批处理 & 脚本技术(批处理室) » Are there any more clever techniques for batch processing delays?
Printable Version  36,150 / 71
Floor46 netwinxp Posted 2007-07-28 20:25
高级用户 Posts 366 Credits 741
For longer delays, if you are worried about inaccuracy, you can use time /T to get the actual time
Floor47 3dnowex Posted 2007-08-19 16:22
初级用户 Posts 20 Credits 41
@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
Floor48 magnus Posted 2007-08-24 10:17
新手上路 Posts 3 Credits 4
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.
Floor49 aq1986 Posted 2007-10-26 18:26
新手上路 Posts 5 Credits 10
Floor50 ywjco Posted 2007-12-03 21:19
初级用户 Posts 17 Credits 31
:: 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.
Floor51 luxiao6802 Posted 2007-12-04 22:49
新手上路 Posts 1 Credits 2
Little brother is a novice, learned
Floor52 pqowi Posted 2007-12-29 18:07
新手上路 Posts 1 Credits 2
Thank you so much
Floor53 greenworld Posted 2007-12-30 15:35
初级用户 Posts 45 Credits 86
The choice command, I think it's better than ping, heh heh
Floor54 vivai Posted 2008-01-09 10:57
新手上路 Posts 1 Credits 2
Thanks to the upstairs for providing another delay tool again
Floor55 pinghu Posted 2008-02-01 21:59
中级用户 Posts 130 Credits 307
Got a delay tool today
Floor56 cnpsx Posted 2008-02-28 19:19
新手上路 Posts 1 Credits 2
Thank you, the original poster. This is the only forum on the entire network that has it.
Floor57 wogan Posted 2008-03-03 13:56
新手上路 Posts 4 Credits 5
The experts are extremely amazing!
Floor58 whq98 Posted 2008-03-04 10:44
新手上路 Posts 5 Credits 10
Downloading it first for my collection!
Floor59 yuehong Posted 2008-03-05 21:55
初级用户 Posts 37 Credits 64
The experts are so amazing...
Learned...
Floor60 jonsonqf Posted 2008-05-02 01:08
初级用户 Posts 29 Credits 65
It seems that if the delay is too long, many of them are no longer accurate
Prev  1 2 3 4 5  Next
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023