home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
cenvi23.zip
/
WAIT.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1995-10-11
|
1KB
|
26 lines
@echo OFF
REM **************************************************************************
REM *** Wait.bat - Wait for a specified number of seconds before returing. ***
REM *** ver.1 No check is done on the input being valid. ***
REM *** This example would wait ten seconds: " Wait 10" ***
REM *** This example uses the OS/2 system call to suspend ***
REM *** processing, which is preferable to polling the current ***
REM *** time. The ordinal for DosSleep (see DosCalls.lib) is ***
REM *** 229. ***
REM **************************************************************************
if not S%1S==SS goto do_it
ECHO You must supply the number of seconds to wait.
goto out
:do_it
CEnvi2 DynamicLink("doscalls",229,BIT32,CDECL,%1 * 1000)
REM ********************************************************************
REM *** The following method would have been an easier way to wait ***
REM *** the same amount of time, but it wouldn't have been such fun. ***
REM ********************************************************************
REM CEnvi2 suspend(%1 * 1000)
:out