This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| example_batch_files [2021/10/26 10:32] – created admin | example_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 | ||
| - | |||
| : | : | ||
| echo Perform some actions | echo Perform some actions | ||
| echo -------------------- | echo -------------------- | ||
| goto Loop | goto Loop | ||
| - | |||
| : | : | ||
| echo Perform some more actions | echo Perform some more actions | ||
| echo ------------------------- | echo ------------------------- | ||
| goto Loop | goto Loop | ||
| - | |||
| : | : | ||
| 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 | if errorlevel | ||
| - | |||
| if errorlevel | if errorlevel | ||
| if errorlevel | if errorlevel | ||
| if errorlevel | if errorlevel | ||
| - | |||
| : | : | ||
| echo FATAL ERROR | echo FATAL ERROR | ||
| goto End | goto End | ||
| - | |||
| : | : | ||
| | | ||
| goto CheckPBErr | goto CheckPBErr | ||
| - | |||
| : | : | ||
| | | ||
| goto CheckPBErr | goto CheckPBErr | ||
| - | |||
| : | : | ||
| | | ||
| goto CheckPBErr | goto 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 | ||
| - | |||
| : | : | ||
| REM ************************************ | REM ************************************ | ||
| Line 88: | Line 75: | ||
| REM ************************************ | REM ************************************ | ||
| Goto Loop | Goto Loop | ||
| - | |||
| : | : | ||
| REM ************************************ | REM ************************************ | ||
| Line 94: | Line 80: | ||
| REM ************************************ | REM ************************************ | ||
| Goto Loop | Goto Loop | ||
| - | |||
| : | : | ||
| REM ************************************ | REM ************************************ | ||
| Line 100: | Line 85: | ||
| REM ************************************ | REM ************************************ | ||
| Goto Loop | Goto Loop | ||
| - | |||
| : | : | ||
| REM ************************************ | REM ************************************ | ||
| Line 106: | Line 90: | ||
| REM ************************************ | REM ************************************ | ||
| Goto Loop | Goto Loop | ||
| - | |||
| :End | :End | ||
| - | |||