home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-386-Vol-2of3.iso / c / chk4user.zip / BOARD.BAT next >
DOS Batch File  |  1993-01-19  |  944b  |  45 lines

  1. @echo off
  2.  
  3. c:
  4. cd\pcb1
  5. if exist event.bat rename event.bat event.sys >nul
  6. if exist remote.bat rename remote.bat remote.sys >nul
  7. if exist door.bat del door.bat >nul
  8.  
  9. recycle >NUL
  10. if errorlevel 1 goto runpcb
  11. copy c:\pcb\prodoor c:\pcb1\door.bat >nul
  12. door N
  13.  
  14. :runpcb
  15. if exist $door.bat del $door.bat >nul
  16. if exist users.sys pcb145/key:open;prodoor^M
  17. if exist door.sys pcb145/key:open;prodoor^M
  18.  
  19. rem ***************************************************************
  20. CHK4USER
  21. IF ERRORLEVEL 1 GOTO END
  22. IF ERRORLEVEL 0 GOTO PROLOGON
  23. rem ***************************************************************
  24.  
  25. :PROLOGON
  26. c:
  27. cd\pcb1
  28. PROLON PROLON.CNF C:\PCB1 %1 %2
  29. if exist door.bat door
  30. if exist remote.bat remote
  31. if exist event.bat event
  32. if exist endpcb goto end
  33. board
  34. goto end
  35.  
  36. :end
  37. cls
  38. if exist endpcb del endpcb >nul
  39. rem echo Type BOARD to restart System
  40.  
  41.  
  42. :exit
  43. rem ***** Load Frontdoor Mailer ******
  44.  cd\fd
  45.  runfd