home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / lan / g0bsx / dos.bat < prev    next >
DOS Batch File  |  1989-10-26  |  3KB  |  89 lines

  1. echo off
  2. rem
  3. rem The default directory where all the servers sit is the \MB directory so
  4. rem go there.
  5. rem
  6. cd \MB
  7. rem
  8. rem before we can use thje MAIL or BULLETIN files for mail distribution, we
  9. rem have to "doctor" them since SMTP does not like any text line longer than
  10. rem 128 characters, so we word wrap all lines to 80 characters maximum with
  11. rem the program ROUND.COM
  12. rem
  13. if exist mail.txt goto domail
  14. goto nomail
  15. :domail
  16. round mail.txt mail.tmp
  17. del mail.txt
  18. rem
  19. smtpi mail.tmp smtpmail.lst g0bsx.ampr GB7PLY
  20. rem
  21. rem The parameters for the smtpi.com file are as follows:
  22. rem 1. the filename of the file into which the mailbox ahs exported all the
  23. rem    mail to be distributed. Note I use a temp file created by ROUND.COM
  24. rem 2. the filename of the list of host, callsign and selection specs desired
  25. rem    for the distribution of MAIL.
  26. rem 3. the host id of the TCP/IP system that interfaces to the mailbox.
  27. rem 4. the CALLSIGN of the mailbox.
  28. rem
  29. rem ONLY do the bulletin export in the early hours and then ONLY once per
  30. rem hour.
  31. rem
  32. :nomail
  33. rem timer -ih 0106
  34. rem if errorlevel 1 goto timeok
  35. rem goto import
  36. :timeok
  37. if exist bulls.txt goto dobulls
  38. goto nobulls
  39. :dobulls
  40. round bulls.txt bulls.tmp
  41. del bulls.txt
  42. rem
  43. smtpi bulls.tmp smtpbull.lst g0bsx.ampr GB7PLY
  44. rem
  45. rem The arguments for the program smtpi.com are as follows:
  46. rem 1. The filename of the file use my the mailbox to put the exported
  47. rem    INTO.
  48. rem 2. The filename of the list of calls and hosts and selection parameters
  49. rem    pertaining to BULLETINS.
  50. rem 3. the hostid of the SMTP TCPIP system that the mailbox is interfaced to.
  51. rem 4. the CALLSIGN of the mailbox.
  52. rem
  53. rem
  54. :nobulls
  55. :import
  56. smtpx import.txt GB7PLY
  57. rem
  58. rem The parameters of the SMTPX.COM program are the filename of the text file
  59. rem into which will be placed mailbox message for import INTO the mailbox and
  60. rem the Mailbox callsign.
  61. rem
  62. rem Since SMTP don't like long lines, ROUND this output file as well just
  63. rem to be on the safe side!
  64. if exist import.txt goto roundit
  65. goto dodatime
  66. :roundit
  67. round import.txt import.tmp
  68. copy import.tmp import.txt
  69. rem
  70. rem I always leave the .TMP files in case something fails so that I can have
  71. rem a look at them and perhaps re-cycle them if needs be.
  72. rem
  73. :dodatime
  74. rem do datime and update BPQ nodes list every 3 hours.
  75. rem
  76. timer -th 3
  77. if errorlevel = 1 goto datime
  78. goto end
  79. :datime
  80. datime
  81. cd \bpq
  82. bpqnodes
  83. rem
  84. :end
  85. cd \bbs
  86. rem
  87. rem you MUST change back to the BBS directory for SERVER to work another time!
  88. rem
  89. rem *** The END *** ((phew!))