@echo off
rem    Ezycom Standalone Batch File V1.0
rem    Command Format :
rem        BBS        (for node 1 operation)
rem        BBS [node] (for node X operation)
rem    [node] is the node number from 1 through to 250
rem    eg  BBS 2
cd %EZY%
if %1! == !     SET TASK=1
if not %1! == ! SET TASK=%1
:start
ezy -E25
if errorlevel 27 goto start
if errorlevel 26 goto tossmail
if errorlevel 25 goto start
if errorlevel 24 goto weeklyevent
if errorlevel 23 goto dailyevent
if errorlevel  9 goto start
if errorlevel  8 goto sysopnext
if errorlevel  7 goto netecho
if errorlevel  6 goto netmail
if errorlevel  5 goto echomail
if errorlevel  4 goto modeminit
if errorlevel  3 goto fossil
if errorlevel  2 goto runtimeerror
if errorlevel  1 goto setuperror
goto finish
:weeklyevent
echo Weekly Maintenance Being performed
cd %EZY%
ezyff -c
ezymaint -D
goto start
:dailyevent
echo Daily Maintenance Being performed
cd %EZY%

REM ***************** EZYCHEXT Routine ***************************
REM Replace the -a<filearea> to whatever is your choice
REM

zzap d:\bbs\files\uploads /v+
ezychext -a200 -N%TASK% ARJ -NOBAK

REM ****************** FINISHES HERE ******************************
ezyff -c
ezymaint -p -i -c -u
ezyff -i
usercomp -B20 -S1 -P -D90 -A
msgcomp  -LINK
ezyutil  -STRIPLOG -TEZY%TASK%.LOG -D21
goto start
:tossmail
cd %EZY%
ezymail -toss
ezynet  -import -echoarea
:netecho
echo Net/Echo Mail Entered
cd %EZY%
EZYMAIL -SCAN
:netmail
cd %EZY%
EZYNET  -EXPORT
goto start
:echomail
cd %EZY%
EZYMAIL -SCAN
goto start
:fossil
echo Fossil Error
goto finish
:modeminit
echo Modem Init Error
goto finish
:runtimeerror
echo Runtime Error Please consult Errors.log
goto start
:setuperror
echo Setup Error
:finish
echo Ezycom is Down
