Dos opciones que he encontrado rapidamente
:: Autor ne0x
:: Declaración de la función
:sleep
:: Sintaxis:
:: call:sleep [-s/-m] [x]
:: -s Indicamos los segundos a esperar
:: -m Indicamos los milisegundos a esperar
:: x Cantidad de segundos/milisegundos a esperar
if %1==-s (set /a tiempo=1+%2 && ping -n %tiempo% 127.0.0.1 > nul )
if %1==-m (ping -n 1 127.0.0.1 -w %2 > nul)
goto:EOF
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:::::::: ::::::::
:::::::: FUNCTION SLEEP WITHOUT USING EXTERNAL COMMANDS ::::::::
:::::::: ::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: ::
:: Get a parameter 1% with the number of seconds to wait. ::
:: Use the following variables: limit cont mirror1 mirror2 ::
:: Use the following variables: SLEEP time increment count ::
:: $author CarlitoS.dll ::
:: ::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
@echo off
:SLEEP
if "%1"=="" (goto :eof)
set /a limit=0
set /a limit=%1
if %limit% LEQ 0 (goto :eof)
set /a cont=0
:time
set mirror1=%time:~-4,1%
:increment
set mirror2=%time:~-4,1%
if not %mirror2%==%mirror1% (goto count)
goto increment
:count
set /a cont +=1
if "%cont%"=="%limit%" (goto :eof)
goto time
goto :eof
Saludos