home *** CD-ROM | disk | FTP | other *** search
/ ftp.wwiv.com / ftp.wwiv.com.zip / ftp.wwiv.com / pub / MISC / EZY200-1.ARJ / EZYBATCH.ARJ / BBS.BAT next >
DOS Batch File  |  2003-02-22  |  2KB  |  94 lines

  1. @echo off
  2. rem    Ezycom Standalone Batch File V1.0
  3. rem    Command Format :
  4. rem        BBS        (for node 1 operation)
  5. rem        BBS [node] (for node X operation)
  6. rem    [node] is the node number from 1 through to 250
  7. rem    eg  BBS 2
  8. cd %EZY%
  9. if %1! == !     SET TASK=1
  10. if not %1! == ! SET TASK=%1
  11. :start
  12. ezy -E25
  13.  
  14. :after_ezy
  15. if errorlevel 27 goto start
  16. if errorlevel 26 goto tossmail
  17. if errorlevel 25 goto start
  18. if errorlevel 24 goto weeklyevent
  19. if errorlevel 23 goto dailyevent
  20. if errorlevel 11 goto start
  21. if errorlevel 10 goto fax
  22. if errorlevel  9 goto start
  23. if errorlevel  8 goto sysopnext
  24. if errorlevel  7 goto netecho
  25. if errorlevel  6 goto netmail
  26. if errorlevel  5 goto echomail
  27. if errorlevel  4 goto modeminit
  28. if errorlevel  3 goto fossil
  29. if errorlevel  2 goto runtimeerror
  30. if errorlevel  1 goto setuperror
  31. goto finish
  32.  
  33. :weeklyevent
  34. echo Weekly Maintenance Being performed
  35. cd %EZY%
  36.  
  37. goto start
  38.  
  39. :dailyevent
  40. echo Daily Maintenance Being performed
  41. cd %EZY%
  42. ezyidx  -build
  43. ezyfile -sort -pack -update
  44. ezyadopt -FILEID
  45. usercomp -B20 -S1 -P -D90 -ALIAS
  46. msgcomp  -LINK -CLEANUP
  47. ezyutil  -STRIPLOG -TEZY%TASK%.LOG -D21
  48. goto start
  49.  
  50. :tossmail
  51. cd %EZY%
  52. ezymail -toss
  53. ezynet  -import -echoarea
  54.  
  55. :netecho
  56. echo Net/Echo Mail Entered
  57. cd %EZY%
  58. EZYMAIL -SCAN
  59.  
  60. :netmail
  61. cd %EZY%
  62. EZYNET  -EXPORT
  63. goto start
  64.  
  65. :echomail
  66. cd %EZY%
  67. EZYMAIL -SCAN
  68. goto start
  69.  
  70. :sysopnext
  71. ezy -L -E25 
  72. goto after_ezy
  73.  
  74. :fax
  75. REM insert your own fax handling routine here
  76. goto start
  77.  
  78. :fossil
  79. echo Fossil Error
  80. goto finish
  81.  
  82. :modeminit
  83. echo Modem Init Error
  84. goto finish
  85.  
  86. :runtimeerror
  87. echo Runtime Error Please consult Errors.log
  88. goto start
  89.  
  90. :setuperror
  91. echo Setup Error
  92. :finish
  93. echo Ezycom is Down
  94.