Category : C Source Code
Archive   : CENVID17.ZIP
Filename : ISDAY_2.BAT

 
Output of file : ISDAY_2.BAT contained in archive : CENVID17.ZIP
@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


  3 Responses to “Category : C Source Code
Archive   : CENVID17.ZIP
Filename : ISDAY_2.BAT

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/