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

  1. echo off
  2. cls
  3. echo Processing Script Quesionnaires into Main Board messagebase...
  4.  
  5. rem  We need to call TXT2MSG seperatly for each script questionnaire
  6. rem  we want it to process.  Note that if someone is using a multi-lingual
  7. rem  option, they will have the language extension (.FRE, .SWE, etc) appened
  8. rem  to the ANSWERx file.  I have a TTY language option, for example, and
  9. rem  thus need to also check for ANSWERx.TTY script answers.
  10.  
  11. txt2msg 0 -qk:\all\scr\script\Answer1     k:\all\stats\caller? -rila
  12. txt2msg 0 -qk:\all\scr\script\Answer2     k:\all\stats\caller? -rila
  13. txt2msg 0 -qk:\all\scr\script\Answer1.tty k:\all\stats\caller? -rila
  14. txt2msg 0 -qk:\all\scr\script\Answer2.tty k:\all\stats\caller? -rila
  15. txt2msg 0 -qk:\all\scr\script\Access1     k:\all\stats\caller? -rila
  16. rem     ^                   ^                         ^          ^
  17. rem     └────────┐          │                         │          │
  18. rem  Main Board ─┘          │                         │          │
  19. rem  Script Questionnaire ──┘                         │          │
  20. rem  Callers Log(s) ──────────────────────────────────┘          │
  21. rem  R/O; add tagline; local (no echo); no ANSI codes ───────────┘
  22.  
  23. rem  "Access1" is the script questionnaire answers from PCBverify new user
  24. rem  processing.  PCBverify is a slick little driver for script quesionnaires
  25.  
  26. echo Moving all scripts to .LOG file(s)
  27.  
  28. rem  We move the scripts off to a log file so they are not re-processed
  29. rem  again tomorrow.  If we failed to do this, every script would be re-
  30. rem  processed every day... not quite what we wanted, eh?  If you do a
  31. rem  similar operation with your caller? logs, TXT2MSG will scan the
  32. rem  callers logs much faster, but this is not necessary.
  33.  
  34. rem  WARNING: if someone is saving a script while this is running and you do
  35. rem  not have something like FATAL.COM loaded, you may get a share error.
  36. rem  This would be very rarely encountered, but I recommend you have FATAL
  37. rem  loaded just in case.  FATAL catches SHARE/DOS critical errors and pops
  38. rem  up a window then automatically retries after a short delay.  FATAL.COM
  39. rem  is from Sam Smith and is available for download on a BBS near you.
  40.  
  41. type k:\all\scr\script\answer1     >>k:\all\stats\answer1.log
  42. type k:\all\scr\script\answer1.tty >>k:\all\stats\answer1.log
  43. del  k:\all\scr\script\answer1.*
  44.  
  45. type k:\all\scr\script\answer2     >>k:\all\stats\answer2.log
  46. type k:\all\scr\script\answer2.tty >>k:\all\stats\answer2.log
  47. del  k:\all\scr\script\answer2.*
  48.  
  49. type k:\all\scr\script\access1 >>k:\all\stats\access1.log
  50. del  k:\all\scr\script\access1
  51.  
  52. echo Done.
  53.