home *** CD-ROM | disk | FTP | other *** search
- echo off
- dc
- echo .
- if errorlevel 7 goto error
- if errorlevel 6 goto 6
- if errorlevel 5 goto 5
- if errorlevel 4 goto 4
- if errorlevel 3 goto 3
- if errorlevel 2 goto 2
- if errorlevel 1 goto 1
- if errorlevel 0 goto 0
-
- :0
- echo It is Sunday. Do Sunday things.
- goto end
- :1
- echo It is Monday. Even programmers get the blues.
- goto end
- :2
- echo Tuesday is not so bad, considering.
- goto end
- :3
- echo Hump day
- goto end
- :4
- echo Do backups today so you can leave early Friday.
- goto end
- :5
- echo TGIF
- goto end
- :6
- echo I suppose you should mow the lawn.
- goto end
- :error
- echo Oh, shucks! You were never supposed to end up here.
- goto finished
- :end
- echo .
- echo So just put your instructions in place of the echo
- echo statements, including calls to other bats if you run 3.3 or above
- echo and you got the day of the week thing handled.
- :finished
-