(view source code of wait.bat as plain text)
@ECHO OFF
IF NOT "%OS%"=="Windows_NT" GOTO Syntax
IF "%~1"=="" GOTO Syntax
ECHO.
ECHO Waiting %~1 seconds
ECHO.
CHOICE /C:AB /D:A /T:%1 > NUL
IF ERRORLEVEL 255 (
ECHO Invalid parameter
GOTO Syntax
)
GOTO:EOF
:Syntax
ECHO.
ECHO WAIT for a specified number of seconds
ECHO.
ECHO Usage: WAIT n
ECHO.
ECHO Where: n = the number of seconds to wait (1 to 99)
ECHO.
EXIT /B 1
page last modified: 2024-04-16; loaded in 0.0051 seconds