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

  1. @echo off
  2. :1ST /CLS /IN:SAVEQWK.FIL /OUT:SAVEQWK.$$$
  3. REM This is a sample $$EXIT.BAT for use with 1stReader.  Copy it to the
  4. REM directory where 1stReader is located and rename it $$EXIT.BAT.
  5. REM
  6. REM @SWITCH(2) shows whether the bookmark switch is on or off.  If it's not
  7. REM -1 the bookmark switch is OFF.  @API(78) shows the number of messages
  8. REM in the packet, according to CONTROL.DAT.  If it's not 0, the packet
  9. REM was configured for 1stReader.  In either case, we know the QWK packet
  10. REM wasn't rearchived by 1stReader.
  11. REM
  12. if not @SWITCH(2) == -1 goto repack
  13. if not @API(78) == 0 goto repack
  14. exit
  15. :repack
  16. if exist %2messages.bak saveqwk
  17.