rem ########################### rem # RUNFBB.BAT for FBB 7.00 # rem # for CX0SA BBS by CX2SA # rem ########################### rem rem Minas, 29/01/2006 - 16:27:38 UTC rem rem RUNFBB.BAT file (example) rem rem This file receives as an argument the option asked by RUNFBB.EXE rem rem This option may be START, STOP, RERUN, MAINT or ERROR. rem rem Only the part concerning the option will be executed. rem break off rem ---------- This portion is not valid any more --- rem You must change this variable according to rem the base directory of the installation rem set fbb=\FBB rem ------------------------------------------------- rem don't forget the "goto end" at the end of each option rem switches the option on command line goto %1 :start ********************** START of START script ************************ echo off cd C:\FBB rem if not exist C:\FBB\bin\wfbb.new goto end rem copy C:\FBB\bin\wfbb.new C:\FBB\bin\wfbb.exe rem del C:\FBB\bin\wfbb.new goto end rem *************************** END of START script ************************** :rerun *********************** START of RERUN script ************************ cd C:\FBB rem if not exist C:\FBB\bin\wfbb.new goto end rem copy C:\FBB\bin\wfbb.new C:\FBB\bin\wfbb.exe rem del C:\FBB\bin\wfbb.new goto end rem **************************** END of RERUN script ************************** :maint ********************** START of MAINT script ************************** cd C:\FBB @echo off cd C:\FBB\system\sat if not exist amsat.txt goto amsatend satupdat amsat.txt /n > satupdat.res satupdat amsat.txt >> satupdat.res del amsat.txt :amsatend cls echo cd C:\FBB rem copymsg rem echo Backup of important files... rem copy C:\FBB\system\dirmes.sys C:\FBB\Respaldo\dirmes.s1 rem copy C:\FBB\system\inf.sys C:\FBB\Respaldo\inf.s1 echo Housekeeping in message datbase.. del epurmess.res epurmess rem ------- Next line is ONLY for use with White Pages..: rem Parametres: Number of days before updating, and before deleting rem Default is 40 and 90 epurwp 40 90 del C:\FBB\system\wp\wp.old cd C:\FBB\system clr_user>>C:\FBB\clr_user.res MAINTINF 12 /a COPY %FBB%\SYSTEM\INF.NEW %FBB%\SYSTEM\INF.SYS cd C:\FBB del C:\FBB\system\dirmes.new del C:\FBB\system\dirmes.old if not exist C:\FBB\error.sys goto direct REM echo SP CX0SA >> %FBB%\MAIL.IN REM echo Error-report >> %FBB%\MAIL.IN REM type %FBB%\ERROR.SYS >> %FBB%\MAIL.IN REM echo. >> %FBB%\MAIL.IN REM ECHO /EX >> %FBB%\MAIL.IN REM type %FBB%\ERROR.SYS >> %FBB%\ERROR.LOG REM del %FBB%\ERROR.SYS :direct goto end rem **************************** END of MAINT script ************************ :stop ************************* START of STOP script ************************* goto end rem ***************************** END of STOP script ************************* :error ********************** START of ERROR script ************************* echo WFBB exited with ERRORLEVEL %2 sleep 5 goto end rem **************************** END of ERROR script ************************** :end echo %1 script is finished. sleep 2