home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / PASCAL / WHATDAY.ZIP / WHATDAY.DOC < prev    next >
Encoding:
Text File  |  1990-06-06  |  2.6 KB  |  63 lines

  1. WhatDay          June 6, 1990
  2. Ricky M. Lacy    The Data Dimension PCBoard   404-921-1186  (HST 14,400)
  3. ========================================================================
  4.  
  5. INTRO
  6. =====
  7. They say necessity is the father of invention.  Well, that is certainly
  8. true where this program is concerned.  I had a need for a utility to
  9. simply figure out what day of the week it was from a batch file.  Seemed
  10. simple enough, so I started combing the bulletin boards.  I was shocked
  11. to not be able to find a good utility to accomplish this.  I found alot
  12. of very large and complex batch file enhancers that could've been used
  13. to do the job, but I just wanted a simple little 2K utility to do this
  14. one task.  The only utility that I found that even came close, but it
  15. was controlled via environment variables and paused for an obnoxious 5
  16. second pause with an advertisement.
  17.  
  18. A friend of mine whipped up a utility to do this in C finally.  I
  19. decided to do the same in pascal to show him how tight pascal can
  20. compile, after slaving over Turbo Pascal 5.5 for about 5 minutes,
  21. WhatDay is born.  And for you C lovers, the C equivalent of this program
  22. is about 4 times as large <grin>.  Look for TESTDAY.ZIP by Michael Tift.
  23.  
  24.  
  25. HOW DOES IT WORK?
  26. =================
  27. Pretty simple, just run it and it'll tell you what day it is and set an
  28. errorlevel like so:
  29.  
  30.         Errorlevel    Day
  31.         ==========    ===
  32.              1        Sun.
  33.              2        Mon.
  34.              3        Tue.
  35.              4        Wed.
  36.              5        Thu.
  37.              6        Fri.
  38.              7        Sat.
  39.  
  40. This should make it extremely easy to use in a batch file, see the
  41. enclosed sample:  SAMPLE.BAT
  42.  
  43.  
  44. LEGAL STUFF
  45. ===========
  46. This program is donated to the public domain.  I see too many nickel and
  47. dime utilities that want registrations or have obnoxious ads plastered
  48. all over them.  If you have a need for this program use it in good
  49. health.
  50.  
  51. DISTRIBUTION
  52. ============
  53. Distribute this program freely.  I have but one condition to add to
  54. this.  And that is that the original contents of the distribution ZIP
  55. should remain unmodified.  Do not change any of the files.  Do not
  56. delete any of the files.  And do not add any files to the distribution
  57. package.  This explicitely means that dirt bag boards like Rusty 'n
  58. Edies who place ads in all their stinking ZIP files may *not* include
  59. them with this collection.  If you run across this file with an ad
  60. enclosed in it (other than the tag on the ZIP itself), please call my
  61. BBS and let me know.  I do not tolerate digital grafitti.
  62.  
  63.