home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Interactive Guide
/
c-cplusplus-interactive-guide.iso
/
c_ref
/
csource1
/
cenvid
/
isday_2.bat
< prev
next >
Wrap
DOS Batch File
|
1993-03-18
|
497b
|
11 lines
@echo OFF
REM IsDay_2.bat - This is like IsDay_1.bat (Set ErrorLevel 1 if it is requested day
REM of the week, and ErrorLeve 0 if not), but accomplishes this in
REM only one quick call to CENVI. Unlike IsDay_1.bat, this does
REM no error checking and provides no help.
cenvi day="%1" day[3]=0 return( strstr(strupr(ctime(time())),strupr(day)) ? 1 : 0 )
if ErrorLevel 1 ECHO Yes, today is %1
if not ErrorLevel 1 ECHO No, today is not %1