home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / mail / mplus351.zip / 351-TXT.ZIP / RBBSQWK.BAT < prev    next >
DOS Batch File  |  1994-01-24  |  2KB  |  45 lines

  1. :
  2. : RBBSQWK.BAT (Optional) - Called by Mail Manager, to prepare QWK packet for
  3. :                          downloading.
  4. :
  5. :                          If you allow your users to choose archive
  6. :                          methods, Mail Manager will have already created
  7. :                          the .QWK by the time this batch file is executed,
  8. :                          and you will not NEED this file at all.
  9. :
  10. :                          If you have additional files that you would like
  11. :                          to include in your users QWK packets, you can
  12. :                          modify this file to add them to the packet.
  13. :
  14. : First command line parameter is base file name
  15. : Second command line parameter is archive method ZIP, ARJ, LZH, or ARC
  16. : Third command line parameter is node number (not used).
  17. :
  18. : Last updated for distribution 12/04/93 - Makai Software
  19. :
  20. : Compress the .QWK packet if it doesn't already exist.
  21. : ---------------------------------------------------------------------------
  22.   if exist %1.qwk GOTO END
  23.   if (%2)==(ZIP) pkzip -m %1.qwk *.dat *.ndx ???log door.id news blt-*.*
  24.   if (%2)==(ARJ) arj m %1.qwk *.dat *.ndx ???log door.id news blt-*.*
  25.   if (%2)==(LZH) lha a -m %1.qwk *.dat *.ndx ???log door.id news blt-*.*
  26.   if (%2)==(ARC) GOTO ARC
  27.   GOTO END
  28.  
  29. :ARC
  30. : ---------------------------------------------------------------------------
  31. : The old PKARC archiver does not allow you to specify files on the command
  32. : line that don't physically exist.  So for this archive method, we'll do a
  33. : check against each individual component of the package prior to attempting
  34. : to archive it.  The "-oc" in the command line specifies "old compatibility",
  35. : the "Crunch" method.
  36. : ----------------------------------------------------------------------------
  37.   if exist *.dat   pkarc -oc m %1.qwk *.dat
  38.   if exist *.ndx   pkarc -oc m %1.qwk *.ndx
  39.   if exist ???log  pkarc -oc m %1.qwk ???log
  40.   if exist door.id pkarc -oc m %1.qwk door.id
  41.   if exist news    pkarc -oc m %1.qwk news
  42.   if exist blt-*.* pkarc -oc m %1.qwk blt-*.*
  43.  
  44. :END
  45.