home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / BBS / MISC / HEAD_117.ZIP / MAIL.BAT < prev    next >
Encoding:
DOS Batch File  |  1990-03-26  |  1.9 KB  |  55 lines

  1. Echo off
  2. REM Simple sample batch file for running Binkley 2.30 or better
  3. REM from HeadEdit, and/or packing up the mail for shipment
  4.  
  5. REM First switch to the appropriate disk and directory
  6. REM Change these defaults to match your setup
  7.  
  8. C:
  9. CD C:\BT
  10.  
  11. REM We'll get a little fancy here.  If we have a command line argument
  12. REM MAIL in the first position (%1), we'll skip Bink and just run XST.
  13.  
  14. IF "%1" == "MAIL" goto Mail
  15.  
  16. REM This invokes Binkley in MAIL mode so it polls your boss
  17.  
  18. BT MAIL
  19.  
  20. REM If Bink exits with an ERRORLEVEL of 100 (F10 key) or 0 (terminated
  21. REM w/ ALT-X/CTRL-C) we'll just exit.  Otherwise, we'll process mail.
  22.  
  23. IF ERRORLEVEL == 100 GOTO End
  24. IF ERRORLEVEL == 2 GOTO Mail
  25. GOTO End
  26.  
  27. REM Here's where we process the incoming mail...
  28. REM Note that a lot of these directories will probably need to be
  29. REM changed to reflect your setup.  Here's a rundown:
  30. REM The path following the -F argument is where incoming files that
  31. REM Bink receives get put.  The -O argument is your outbound directory
  32. REM (where msgs and attaches going out are kept).  The -P argument is
  33. REM the directory where your XBBS-style msg bases reside.  The -#
  34. REM argument tells XST which board or area is your netmail area in the
  35. REM XBBS-style msg base.
  36.  
  37. :Mail
  38. XST -AC:\BT\PKXARC -CXST.CTL -FC:\BT\FILES -OC:\BT\OUTBOUND -PC:\BT\MESS -#5 -L -T
  39.  
  40. REM This line is in case you want to run oMMM, just for reference.
  41. REM ommm -z1 -s%Sched% -iC:\BT\Binkley.prm -mC:\BT\Msg -hC:\BT\Outbound -cC:\BT\Route.BBS -n -a
  42.  
  43. REM MakeArc just archives any outbound mail that might be waiting...
  44. REM I put MakeArc here because, while it doesn't do any routing, it's a
  45. REM lot easier to set up than oMMM.  If you find it doesn't do enough,
  46. REM I recommend you get and use oMMM.
  47.  
  48. MakeArc
  49.  
  50. REM Here's where we say bye-bye to Bink and return to DOS (or HeadEdit
  51. REM if we called the batch file from there)...
  52.  
  53. :End
  54. Exit
  55.