home *** CD-ROM | disk | FTP | other *** search
/ Current Shareware 1994 January / SHAR194.ISO / email / qprn103.zip / UNPACK.BAT < prev    next >
DOS Batch File  |  1993-08-29  |  1KB  |  32 lines

  1. @echo off
  2. REM This batch file is for using QWKPRUNE with most mail readers.
  3. REM See READER.DOC for details about using it with your reader.
  4. REM
  5. REM Copy it to the directory where the reader is located.
  6. REM
  7. REM Wherever you see [work_dir], replace it with the
  8. REM work directory defined in the reader's configuration.
  9. REM Some readers change to their work directory when unpacking
  10. REM a QWK packet.  In these cases, you can simply remove [work_dir].
  11. REM
  12. REM The lines "parmscan .REP %1 %2 %3 %4 %5 %6 %7 %8 %9" and
  13. REM "if not errorlevel 1 exit" prevent QWKPRUNE from being called
  14. REM again if a reply packet is unpacked.  Users of database-style 
  15. REM readers should usually be able to remove these lines.
  16. REM
  17. REM (4DOS users may replace these lines with
  18. REM "if %@index[%@upper[%1&],.REP] NE -1 quit".)
  19. REM
  20. REM In the reader's configuration, insert "UNPACK" (without the quotes)
  21. REM before the name of each of your unpackers.    If you need to do anything
  22. REM else to run this file, it will be noted in READER.DOC.  If your reader
  23. REM isn't listed in READER.DOC, and "UNPACK" doesn't work, include the
  24. REM .BAT extension.  Some readers may require that you give a path to the
  25. REM batch file.  If neither "UNPACK" nor "UNPACK.BAT" works, use
  26. REM "COMMAND /C UNPACK" or "PARM UNPACK" (again w/o quotes) instead.
  27. REM
  28. %1 %2 %3 %4 %5 %6 %7 %8 %9
  29. parmscan .REP %1 %2 %3 %4 %5 %6 %7 %8 %9
  30. if not errorlevel 1 exit
  31. if exist [work_dir]\messages.dat qwkprune /m[work_dir]
  32.