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

  1. @echo off
  2. rem    Ezycom IM Mailer Batch File V1.0
  3. rem    Command Format :
  4. rem    IMMAILER        (for node 1 operation)
  5. rem    IMMAILER [node] (for node XX operation)
  6. rem    [node] is the node number from 1 through to 250
  7. rem    eg  BBS 2
  8. set IM=C:\IM
  9. rem NOTE : no trailing backslash
  10. if %1! == !     SET TASK=1
  11. if not %1! == ! SET TASK=%1
  12. :start
  13. cd %IM%
  14. im
  15. if errorlevel 213 goto 38400baud
  16. if errorlevel 212 goto 28800baud
  17. if errorlevel 211 goto 26400baud
  18. if errorlevel 210 goto 24000baud
  19. if errorlevel 208 goto 21600baud
  20. if errorlevel 209 goto 19200baud
  21. if errorlevel 208 goto 16800baud
  22. if errorlevel 208 goto 14400baud
  23. if errorlevel 207 goto 12000baud
  24. if errorlevel 206 goto 9600baud
  25. if errorlevel 205 goto 7200baud
  26. if errorlevel 204 goto 4800baud
  27. if errorlevel 203 goto 2400baud
  28. if errorlevel 202 goto 1275baud
  29. if errorlevel 201 goto 1200baud
  30. if errorlevel 200 goto 300baud
  31. if errorlevel 191 goto scanecho
  32. if errorlevel 190 goto unpackmail
  33. if errorlevel  51 goto localbbs
  34. if errorlevel  50 goto cleanup
  35. if errorlevel  10 goto end
  36. if errorlevel   6 goto fossil
  37. if errorlevel   5 goto modeminit
  38. if errorlevel   4 goto modemresp
  39. if errorlevel   3 goto fulldisk
  40. if errorlevel   2 goto external
  41. if errorlevel   1 goto internal
  42. goto start
  43.  
  44. :38400baud
  45. cd %EZY%
  46. ezy -b38400 -E20
  47. goto after_ezy
  48.  
  49. :28800baud
  50. cd %EZY%
  51. ezy -b28800 -E20
  52. goto after_ezy
  53.  
  54. :26400baud
  55. cd %EZY%
  56. ezy -b26400 -E20
  57. goto after_ezy
  58.  
  59.  
  60. :24000baud
  61. cd %EZY%
  62. ezy -b24000 -E20
  63. goto after_ezy
  64.  
  65. :21600baud
  66. cd %EZY%
  67. ezy -b21600 -E20
  68. goto after_ezy
  69.  
  70. :19200baud
  71. cd %EZY%
  72. ezy -b19200 -E20
  73. goto after_ezy
  74.  
  75. :16800baud
  76. cd %EZY%
  77. ezy -b16800 -E20
  78. goto after_ezy
  79.  
  80. :14400baud
  81. cd %EZY%
  82. ezy -b14400 -E20
  83. goto after_ezy
  84.  
  85. :12000baud
  86. cd %EZY%
  87. ezy -b12000 -E20
  88. goto after_ezy
  89.  
  90. :9600baud
  91. cd %EZY%
  92. ezy -b9600 -E20
  93. goto after_ezy
  94.  
  95. :7200baud
  96. cd %EZY%
  97. ezy -b7200 -E20
  98. goto after_ezy
  99.  
  100. :4800baud
  101. cd %EZY%
  102. ezy -b4800 -E20
  103. goto after_ezy
  104.  
  105. :2400baud
  106. cd %EZY%
  107. ezy -b2400 -E20
  108. goto after_ezy
  109.  
  110. :1275baud
  111. cd %EZY%
  112. ezy -b1275 -E20
  113. goto after_ezy
  114.  
  115. :1200baud
  116. cd %EZY%
  117. ezy -b1200 -E20
  118. goto after_ezy
  119.  
  120. :300baud
  121. cd %EZY%
  122. ezy -b300 -E20
  123. goto after_ezy
  124.  
  125. :localbbs
  126. cd %EZY%
  127. ezy -L -E20
  128.  
  129. :after_ezy
  130. if errorlevel 20 goto start
  131. if errorlevel 11 goto start
  132. if errorlevel 8 goto sysopnext
  133. if errorlevel 7 goto scanecho
  134. if errorelvel 6 goto scanecho
  135. if errorlevel 5 goto scanecho
  136. if errorlevel 4 goto modeminit
  137. if errorlevel 3 goto fossil
  138. if errorlevel 2 goto runtimeerror
  139. if errorlevel 1 goto setuperror
  140. goto start
  141.  
  142. :unpackmail
  143. cd %EZY%
  144. ezymail -toss -verbose
  145. ezynet  -import -echoarea
  146. goto start
  147.  
  148. :scanecho
  149. cd %EZY%
  150. ezymail -scan -verbose
  151. ezynet  -export
  152. goto start
  153.  
  154. :cleanup
  155. cd %EZY%
  156. ezyidx -BUILD
  157. ezyfile -sort -pack -update
  158. usercomp -b20 -p -d90 -s1 -alias
  159. msgcomp -LINK -cleanup
  160. ezyadopt -FILEID
  161. goto start
  162.  
  163. :sysopnext
  164. echo Hello!!!! Your LOGON NOW!!!
  165. pause
  166. goto start
  167.  
  168. :weekly
  169. cd %EZY%
  170. goto start
  171.  
  172. :setuperror
  173. echo Setup Error!
  174. goto end
  175.  
  176. :runtimeerror
  177. echo Internal Error! Consult Errors.Log
  178. goto start
  179.  
  180. :modeminit
  181. echo Modem Init Error!
  182. goto End
  183.  
  184. :fossil
  185. Echo Wrong Fossil Version!
  186. goto end
  187.  
  188. :modeminit
  189. Echo EZY Unable To Initialize Modem!
  190. goto start
  191.  
  192. :modemresp
  193. Echo IM Modem NOT Responding!
  194. goto end
  195.  
  196. :fulldisk
  197. Echo Insufficent Disk Space TO Proceed!
  198. goto end
  199.  
  200. :external
  201. Echo External IM Error - System File Missing!
  202. goto end
  203.  
  204. :internal
  205. Echo Internal IM Error!
  206. goto end
  207.  
  208. :end
  209. Echo Ezycom Is Down!
  210. cd %EZY%
  211.