home *** CD-ROM | disk | FTP | other *** search
/ ftp.wwiv.com / ftp.wwiv.com.zip / ftp.wwiv.com / pub / BBS / CEL141.ZIP / CEL141C.ZIP / SMTBAT11.ZIP / EVENT.BAT next >
DOS Batch File  |  1992-06-01  |  2KB  |  77 lines

  1. @REM
  2. @REM  Use this file with SMARTBAT.EXE and Celerity to run maint. scheds.
  3. @REM  Courtesy of Rasta Mon - Sysop of Nirvana 713-931-7778 No stinkin NUP
  4. @REM
  5. @REM            the @ sign mean 'do not echo command to screen'  duh?
  6.  
  7.  
  8. @REM Run SmartBat first to set the ERRORLEVEL
  9. @SmartBat
  10.  
  11.  
  12. @REM these numbers MUST be in decending order!!!!   i.e.  7,6,5,4,3,2,1
  13. @IF ERRORLEVEL 7 GOTO SUNDAY
  14. @IF ERRORLEVEL 6 GOTO SATURDAY
  15. @IF ERRORLEVEL 5 GOTO FRIDAY
  16. @IF ERRORLEVEL 4 GOTO THURSDAY
  17. @IF ERRORLEVEL 3 GOTO WEDNESDAY
  18. @IF ERRORLEVEL 2 GOTO TUESDAY
  19. @IF ERRORLEVEL 1 GOTO MONDAY
  20. @REM didn't detect the right day at this point.....so exit
  21. @GOTO BOTTOM
  22.  
  23.  
  24. :MONDAY
  25. @REM   Monday's stuff to do - freshen backup
  26. @arj f -r C:\BBSBACK\CELEBACK D:\CELERITY\*.*
  27. @REM   one of my utils - makes sure all new users are in the NUV List
  28. @Add2NUV
  29. @REM   another one of my utils - hides my secret users
  30. @HideUsrs
  31. @Goto Bottom
  32.  
  33. :TUESDAY
  34. @REM   tuesday's stuff to do - move shit offline
  35. @Xcopy D:\DOWN\GOINGOFF\*.* C:\OFFLINE\
  36. @Add2NUV
  37. @HideUsrs
  38. @Goto Bottom
  39.  
  40. :WEDNESDAY
  41. @REM wednesday's stuff - freshen backup
  42. @arj f -r C:\BBSBACK\CELEBACK D:\CELERITY\*.*
  43. @Add2NUV
  44. @HideUsrs
  45. @Goto Bottom
  46.  
  47. :THURSDAY
  48. @REM thursday's stuff -
  49. @Add2NUV
  50. @HideUsrs
  51. @Goto Bottom
  52.  
  53. :FRIDAY
  54. @REM friday's stuff
  55. @Echo It's Friday!  TGIF mon...
  56. @Add2NUV
  57. @HideUsrs
  58. @Goto Bottom
  59.  
  60. :SATURDAY
  61. @REM saturday's stuff
  62. @Add2NUV
  63. @HideUsrs
  64. @Goto Bottom
  65.  
  66. :SUNDAY
  67. @REM sunday's stuff
  68. @Add2NUV
  69. @HideUsrs
  70. @Goto Bottom
  71.  
  72. :BOTTOM
  73. @REM Wait one minute so time will change
  74. SMARTBAT /W
  75. @REM rerun the BBS
  76. @Main
  77.