home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PsL Monthly 1994 February
/
psl_9403.zip
/
psl_9403
/
DOS
/
UT_SYSTM
/
CENVI2.ZIP
/
ISITFRI.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1993-06-14
|
750b
|
14 lines
@echo OFF
REM **************************************************************************
REM *** IsItFri.cmd - Use CEnvi from a batch file to determine if today is ***
REM *** Friday. CEnvi is called from one line and sets ***
REM *** ERRORLEVEL (by its return value) to 1 if it is ***
REM *** Friday and 0 if it is not Friday. The batch file ***
REM *** may then switch actions based on that ERROLEVEL ***
REM **************************************************************************
cenvi "DateString = ctime(time()) return( strstr(DateString,"Fri") ? 1 : 0 )"
if ErrorLevel 1 ECHO WHOOPEE! It Is Friday
if not ErrorLevel 1 ECHO Dang! It is Not Friday