home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / mslang / xcron / readme < prev    next >
Encoding:
Text File  |  1994-06-03  |  1.5 KB  |  40 lines

  1.  
  2.              These programs are placed into the public domain
  3.                                     with
  4.                    no warranty either expressed or implied.
  5.  
  6. DOSCRON and BATCRON are DOS variations on UNIX's CRON scheduler program.
  7.  
  8. DOSCRON take the format of DOSCRON <Hour> <Minute> <Program Name> <Days>
  9. and will execute <Program Name> at <Hour>:<Minute> 7 days a week if
  10. specific days are not passed to it.
  11.  
  12.            DOSCRON 7 15 TEST will exectute TEST at 7:15 AM 7 days a week
  13.            DOSCRON 7 15 TEST 24 will exectute TEST at 7:15 AM Mon. & Thurs.
  14.  
  15. BATCRON is identical to DOSCRON except it doesn't take a <Program Name>.  It's
  16. designed to run in a batch file.  IE:
  17.  
  18.                         :start
  19.                         @echo off
  20.                         REM Run dir \*.* /s at 9:30 AM Mon.-Fri.
  21.                         BATCRON 9 30 12345
  22.                         @IF ERRORLEVEL 1 GOTO end
  23.                         dir \*.* /s
  24.                         goto start
  25.                         :end
  26.  
  27. If [Esc] is pressed the batch file is aborted by setting DOS' ERRORLEVEL to 1.
  28. Otherwise the new program is executed at the time specified by setting DOS'
  29. ERRORLEVEL to 0.
  30.  
  31. Type DOSCRON or BATCRON for Day of the week values and the command line format.
  32.  
  33. I've include the C source code and the MicroSoft NMake compable make file so
  34. that you can modify this code to make it more convenient for your requirements.
  35.  
  36. Ric Seymour
  37.  
  38. CompuServe: 76330,2307
  39. Internet:   rseymour@fdic.gov
  40.