home *** CD-ROM | disk | FTP | other *** search
-
- These programs are placed into the public domain
- with
- no warranty either expressed or implied.
-
- DOSCRON and BATCRON are DOS variations on UNIX's CRON scheduler program.
-
- DOSCRON take the format of DOSCRON <Hour> <Minute> <Program Name> <Days>
- and will execute <Program Name> at <Hour>:<Minute> 7 days a week if
- specific days are not passed to it.
-
- DOSCRON 7 15 TEST will exectute TEST at 7:15 AM 7 days a week
- DOSCRON 7 15 TEST 24 will exectute TEST at 7:15 AM Mon. & Thurs.
-
- BATCRON is identical to DOSCRON except it doesn't take a <Program Name>. It's
- designed to run in a batch file. IE:
-
- :start
- @echo off
- REM Run dir \*.* /s at 9:30 AM Mon.-Fri.
- BATCRON 9 30 12345
- @IF ERRORLEVEL 1 GOTO end
- dir \*.* /s
- goto start
- :end
-
- If [Esc] is pressed the batch file is aborted by setting DOS' ERRORLEVEL to 1.
- Otherwise the new program is executed at the time specified by setting DOS'
- ERRORLEVEL to 0.
-
- Type DOSCRON or BATCRON for Day of the week values and the command line format.
-
- I've include the C source code and the MicroSoft NMake compable make file so
- that you can modify this code to make it more convenient for your requirements.
-
- Ric Seymour
-
- CompuServe: 76330,2307
- Internet: rseymour@fdic.gov
-