home *** CD-ROM | disk | FTP | other *** search
/ Big Blue Disk 51 / bbd51.zip / RUNGOAL.BAT < prev    next >
DOS Batch File  |  1990-11-12  |  387b  |  14 lines

  1. ECHO OFF
  2. REM  RUNGOAL.BAT  (Example use of SCHEDULE and GOAL TENDER)
  3.  
  4. REM  Check trigger #1 to see if this is the first startup of the day.
  5. REM  If this is the first startup then display a random goal.
  6. SCHEDULE E1 1
  7. IF ERRORLEVEL 2 GOTO END_BATCH
  8.  
  9. GOAL -R -F SAMPLE
  10. REM  Set trigger 1 to today so that only one goal will be displayed per day.
  11. SCHEDULE S1 * >NUL
  12.  
  13. :END_BATCH
  14.