ProBoard BBS Documentation

The Choice of Professionals

User Tools

Site Tools


example_batch_files

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
example_batch_files [2021/10/26 10:32] – created adminexample_batch_files [2021/10/26 10:34] (current) admin
Line 14: Line 14:
          if errorlevel 1 goto FatalError          if errorlevel 1 goto FatalError
          goto Loop          goto Loop
- 
          :Event1          :Event1
          echo Perform some actions          echo Perform some actions
          echo --------------------          echo --------------------
          goto Loop          goto Loop
- 
          :Event2          :Event2
          echo Perform some more actions          echo Perform some more actions
          echo -------------------------          echo -------------------------
          goto Loop          goto Loop
- 
          :FatalError          :FatalError
          echo FATAL ERROR - ProBoard Down          echo FATAL ERROR - ProBoard Down
          :End          :End
  
-Using ProBoard with a frontend-mailer is a little more complicated. This +Using ProBoard with a frontend-mailer is a little more complicated. This is an example for use with FrontDoor.
-is an example for use with FrontDoor.+
  
 In this example FrontDoor uses the following errorlevels: In this example FrontDoor uses the following errorlevels:
Line 43: Line 39:
          
          SET FD=C:\FD          SET FD=C:\FD
- 
          :Loop          :Loop
          cd \fd          cd \fd
Line 51: Line 46:
          cd\pb          cd\pb
          if errorlevel  60 goto Local          if errorlevel  60 goto Local
- 
          if errorlevel  52 goto Call2400          if errorlevel  52 goto Call2400
          if errorlevel  51 goto Call1200          if errorlevel  51 goto Call1200
          if errorlevel  50 goto Call300          if errorlevel  50 goto Call300
- 
          :FatalErr          :FatalErr
          echo FATAL ERROR          echo FATAL ERROR
          goto End          goto End
- 
          :Call300          :Call300
          proboard -b300 -p1          proboard -b300 -p1
          goto CheckPBErr          goto CheckPBErr
- 
          :Call1200          :Call1200
          proboard -b1200 -p1          proboard -b1200 -p1
          goto CheckPBErr          goto CheckPBErr
- 
          :Call2400          :Call2400
          proboard -b2400 -p1          proboard -b2400 -p1
          goto CheckPBErr          goto CheckPBErr
- 
          :Local          :Local
          proboard          proboard
- 
          :CheckPBErr          :CheckPBErr
          if errorlevel 100 goto End          if errorlevel 100 goto End
Line 82: Line 70:
          if errorlevel 1 goto FatalErr          if errorlevel 1 goto FatalErr
          goto Loop          goto Loop
- 
          :NetEcho          :NetEcho
          REM ************************************          REM ************************************
Line 88: Line 75:
          REM ************************************          REM ************************************
          Goto Loop          Goto Loop
- 
          :NetEntered          :NetEntered
          REM ************************************          REM ************************************
Line 94: Line 80:
          REM ************************************          REM ************************************
          Goto Loop          Goto Loop
- 
          :EchoEntered          :EchoEntered
          REM ************************************          REM ************************************
Line 100: Line 85:
          REM ************************************          REM ************************************
          Goto Loop          Goto Loop
- 
          :MailRcv          :MailRcv
          REM ************************************          REM ************************************
Line 106: Line 90:
          REM ************************************          REM ************************************
          Goto Loop          Goto Loop
- 
          :End          :End
- 
example_batch_files.1635215566.txt.gz · Last modified: 2021/10/26 10:32 by admin