home *** CD-ROM | disk | FTP | other *** search
- echo off
- palert /d
-
- rem NOTE: Errorlevels MUST be evaluated from the greatest to the lowest.
- rem If you do not, the batch file will not work.
-
- if errorlevel = 6 goto sat
- if errorlevel = 5 goto fri
- if errorlevel = 4 goto thu
- if errorlevel = 3 goto wed
- if errorlevel = 2 goto tue
- if errorlevel = 1 goto mon
- if errorlevel = 0 goto sun
- goto error
-
- :sat
- echo Today is Saturday
- goto end
-
- :fri
- echo Today is Friday
- goto end
-
- :thu
- echo Today is Thursday
- goto end
-
- :wed
- echo Today is Wedensday
- goto end
-
- :tue
- echo Today is Tuesday
- goto end
-
- :mon
- echo Today is Monday
- goto end
-
- :sun
- echo Today is Sunday
- goto end
-
- :error
- :end
-