home *** CD-ROM | disk | FTP | other *** search
- @echo off
- cls
- iswhat dom
- if errorlevel 29 goto NOT15
- :arclogs
- if not errorlevel 28 goto NOT15
- echo It's the 28th of the month, here we call our batch file
- echo to archive our log files.
- goto end
- :NOT15
- echo It's not the right day, so we exit...
- :end
- echo we are done with that test!
- pause
- cls
- echo Now we test for a specific day of a certain month
- echo Currently we are checking for January 28th
- pause
- echo:
- iswhat DATE 01/28/96
- if not errorlevel 1 goto NOTDAY
- if errorlevel 1 goto THEDAY
- if errorlevel 0 goto NOTDAY
- :THEDAY
- echo Hey! It's my birthday today.... groan!
- goto END1
- :NOTDAY
- echo This is not the day you were looking for.... sorry.
- :END1
-
-