home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / BBS / DOORS / ECHO310.ZIP / ECHODOOR.BAT < prev    next >
Encoding:
DOS Batch File  |  1991-06-21  |  1.8 KB  |  54 lines

  1. ECHO OFF
  2. rem
  3. rem        ECHODOR.BAT Controling batch file
  4. rem
  5. rem        You MUST put the name "ECHODOR" in your MENU5 file (Doors Menu)
  6. rem        in ALL CAPS, Preceeded and followed by a SPACE!
  7. rem
  8. rem        The first  thing we have to do is change the Current Dir to the
  9. rem        Dir with the Echodor files.
  10. rem
  11. cd \echodor
  12. rem
  13. rem        Now, we need all the DORINFOx.DEF files from the RBBS dir.
  14. rem
  15. rem        If you specified the BBSPATH parameter in the DoorDriv.Ctl
  16. rem        file to point to the RBBS directory, then you don't have to
  17. rem        copy the file to the current directory.  EchoDor will know
  18. rem        where to look.
  19. rem
  20. rem copy \rbbs\dorinfo*.def
  21. rem
  22. rem
  23. rem         Now since RBBS will pass the node number to ECHODOR.BAT
  24. rem         on the command line, we need to run echodor passing the
  25. rem         node number.  This is how echomail figures out which
  26. rem         DORINFOx.DEF file to use.
  27. rem
  28. rem
  29. Echodor %1 %2
  30. rem
  31. rem         if we get something higher than an errorlevel 3 then there
  32. rem         is some sort of problem with EchoDor.
  33. rem
  34. if errorlevel 4 goto exit
  35. rem
  36. rem         Check for errorlevel 3.  If EchoDor exits with errorlevel 3
  37. rem         then call the EchoDor download batch file.  This batch file
  38. rem         assumes that parameter %1 contains the node number.
  39. rem
  40. rem         The %2 parameter is to allow the /R (restart) parameter to
  41. rem         be passed back to EchoDor to tell it that it should restore
  42. rem         the user information & time.  This information is saved in
  43. rem         a file called EchoDor#.ret where "#" is the node number.
  44. rem
  45. rem         Node #1 would use EchoEX1.BAT
  46. rem
  47. if errorlevel 3 EchoEX%1
  48. rem
  49. rem         Now to return to RBBS-PC...  Since Rctty.bat will call RBBS.BAT,
  50. rem         you dont need to re-call it in this batch file.
  51. rem
  52. :exit
  53. CD \rbbs
  54.