home *** CD-ROM | disk | FTP | other *** search
/ Beijing Paradise BBS Backup / PARADISE.ISO / software / BBSDOORW / ISWHT103.ZIP / EXAMPLES.ZIP / TEST.BAT < prev   
Encoding:
DOS Batch File  |  1996-01-28  |  682 b   |  31 lines

  1. @echo off
  2. cls
  3. iswhat dom
  4. if errorlevel 29 goto NOT15
  5. :arclogs
  6. if not errorlevel 28 goto NOT15
  7. echo It's the 28th of the month, here we call our batch file
  8. echo to archive our log files.
  9. goto end
  10. :NOT15
  11. echo It's not the right day, so we exit...
  12. :end
  13. echo we are done with that test!
  14. pause
  15. cls
  16. echo Now we test for a specific day of a certain month
  17. echo Currently we are checking for January 28th
  18. pause
  19. echo:
  20. iswhat DATE 01/28/96
  21. if not errorlevel 1 goto NOTDAY
  22. if errorlevel 1 goto THEDAY
  23. if errorlevel 0 goto NOTDAY
  24. :THEDAY
  25. echo  Hey! It's my birthday today.... groan!
  26. goto END1
  27. :NOTDAY
  28. echo This is not the day you were looking for.... sorry.
  29. :END1
  30.  
  31.