home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.wwiv.com
/
ftp.wwiv.com.zip
/
ftp.wwiv.com
/
pub
/
MISC
/
EZY200-1.ARJ
/
EZYBATCH.ARJ
/
DBMAILER.BAT
< prev
next >
Wrap
DOS Batch File
|
2003-02-22
|
1KB
|
58 lines
@echo off
rem Ezycom DB Mailer Batch File V1.0
rem Command Format :
rem DBMAILER (for node 1 operation)
rem DBMAILER [node] (for node XX operation)
rem [node] is the node number from 1 through to 250
rem eg BBS 2
set DBRIDGE=C:\DB
rem NOTE : no trailing backslash
if %1! == ! SET TASK=1
if not %1! == ! SET TASK=%1
:EXECDB
cd %DBRIDGE%
echo scan >dbridge.rsn
Db
if errorlevel 100 goto WEEKEND
if errorlevel 90 goto DAILY
if errorlevel 60 goto MAILIN
if errorlevel 50 goto BBS
if errorlevel 45 goto EDITOR
if errorlevel 1 goto EXIT
if errorlevel 0 goto EXIT
goto execdb
:DAILY
cd %EZY%
ezymail -scan
ezynet -export
ezyidx -BUILD
ezyfile -SORT -PACK -UPDATE
usercomp -A -S1 -P -B10 -D90
msgcomp -LINK -FASTMAIL
ezyadopt -FILEID
goto execdb
:MAILIN
ezynet -import -echoarea
ezymail -toss
goto execdb
:BBS
CALL bbs.bat
goto execdb
:EDITOR
cd %DBRIDGE%
dbedit
goto execdb
:WEEKEND
rem weekend event like stuff goes here
cd %EZY%
msgcomp -cleanup
goto execdb
:EXIT
echo Ezycom is Down