home *** CD-ROM | disk | FTP | other *** search
/ Boston 2 / boston-2.iso / DOS / HILFEN / MODEM / SALES / MISC.XXX / TX2MB220.ZIP / NASAMAIL.BAT < prev    next >
DOS Batch File  |  1991-03-10  |  4KB  |  57 lines

  1. echo off
  2. rem ┌────────────────────────────────────────────────────────────────────────┐
  3. rem │ This example batchfile finds any new textfiles in the NASA directory   │
  4. rem │ with a given extension and imports them as messages.  Note that the    │
  5. rem │ "-pine" switches are used to force the message: Public, Tagline added, │
  6. rem │ no textfile header control, and Echo message.  The first line has a -l │
  7. rem │ switch in place of the -e since that conference is local, not echo.    │
  8. rem │                                                                        │
  9. rem │ The -fSYSOP forces the messages to be from SYSOP.                      │
  10. rem │                                                                        │
  11. rem │ Note the use of -x0 in the first line:  this tells TXT2MSG to create   │
  12. rem │ as many (no limit) messages as needed to import the entire textfile in │
  13. rem │ the local space conference.  Since this is not desired for echo mail   │
  14. rem │ processing we use the -x2 switch to limit TXT2MSG to create a maximum  │
  15. rem │ of two messages from any given source textfile.                        │
  16. rem │                                                                        │
  17. rem │ Note the use of "@file" lists to specify what extensions go to what    │
  18. rem │ messagebases.  The @files are as follows:                              │
  19. rem │                                                                        │
  20. rem │ ┌── d:\all\event\space.lst ──────┐                                     │
  21. rem │ │f:\nasa\*.rel                   │  All .REL, .SHU, .VOY, .MAG, and    │
  22. rem │ │f:\nasa\*.shu                   │  .GAL files will go to the          │
  23. rem │ │f:\nasa\*.voy                   │  e:\conf\space messagebase and the  │
  24. rem │ │f:\nasa\*.mag                   │  e:\conf\r-space messagebase.       │
  25. rem │ │f:\nasa\*.gal                   │                                     │
  26. rem │ └────────────────────────────────┘                                     │
  27. rem │                                                                        │
  28. rem │ ┌── d:\all\event\il-space.lst ───┐                                     │
  29. rem │ │f:\nasa\*.rel                   │  All .REL and .SHU files will go    │
  30. rem │ │f:\nasa\*.shu                   │  to e:\conf\il-space messagebase.   │
  31. rem │ └────────────────────────────────┘                                     │
  32. rem │                                                                        │
  33. rem │ ┌── d:\all\event\astronom.lst ───┐                                     │
  34. rem │ │f:\nasa\*.voy                   │  All .VOY, .MAG, and .GAL files     │
  35. rem │ │f:\nasa\*.mag                   │  will be entered as messages in the │
  36. rem │ │f:\nasa\*.gal                   │  e:\conf\astronom conference.       │
  37. rem │ └────────────────────────────────┘                                     │
  38. rem │                                                                        │
  39. rem │ Note the use of *.rel (etc) to specify wildcard selections of files.   │
  40. rem └────────────────────────────────────────────────────────────────────────┘
  41. echo TXT2MSG Process NASA files into message bases...
  42.  
  43. TXT2MSG e:\conf\space    @d:\all\event\space.lst    -pinl -fSYSOP -x0
  44. TXT2MSG e:\conf\r-space  @d:\all\event\space.lst    -pinl -fSYSOP -x0
  45. TXT2MSG e:\conf\il-space @d:\all\event\il-space.lst -pine -fSYSOP -x2
  46. TXT2MSG e:\conf\astronom @d:\all\event\astronom.lst -pine -fSYSOP -x2
  47.  
  48. echo Delete NASA files from working directory...
  49. if exist f:\nasa\*.rel del f:\nasa\*.rel
  50. if exist f:\nasa\*.shu del f:\nasa\*.shu
  51. if exist f:\nasa\*.voy del f:\nasa\*.voy
  52. if exist f:\nasa\*.mag del f:\nasa\*.mag
  53. if exist f:\nasa\*.gal del f:\nasa\*.gal
  54.  
  55. c:
  56. cd\pcb
  57.