home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 2 BBS
/
02-BBS.zip
/
BINK.ZIP
/
BBS.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1992-01-06
|
2KB
|
83 lines
@Echo off
Set BBS=\Max\
Set BINKLEY=\Bink\
Set RBuf=4096
Set TBuf=1024
Set SnoopPipe=\Pipe\BBS
Set Path=\Bink;\Max;%Path%
Set Node=1
CD \Bink
REM Insure not recursive invocation
If Exist INBINK Goto EXIT
\OS2\Mode CO80,50
:LOOP
REM Delete any leftover *.REQ files from Matrix File area.
If Exist \Bink\Inbound\*.REQ Del \Bink\Inbound\*.REQ
CD \Bink
Echo INBINK >INBINK
\OS2\MODE COM1:19200,N,8,1,TO=ON,XON=OFF,DTR=OFF,IDSR=OFF,ODSR=OFF,OCTS=ON,RTS=HS,BUFFER=AUTO
BTP %1 Dynam Share Unattended
If ERRORLEVEL 30 Goto MAIL_POLL
If ERRORLEVEL 20 Goto NIGHT
If ERRORLEVEL 14 Goto MAILIN
If ERRORLEVEL 13 Goto MAILIN
If ERRORLEVEL 11 Goto AFTERBINK
If ERRORLEVEL 10 Goto LOOP
If ERRORLEVEL 0 Goto AFTERBINK
Goto LOOP
:AFTERBINK
If ERRORLEVEL 2 Echo ERRORLEVEL is 2 to 5.
If ERRORLEVEL 2 Echo ERRORLEVEL is 2 to 5. >> ERROR.LOG
If ERRORLEVEL 2 Goto LOOP
REM This is the common CTRL-C Exit.
Goto EXIT:
rem ------------------------------------------------------------------------
:NIGHT -- The first daily event.
If Exist \max\active??.BBS Goto Skip_Pack
\MAX\MAXUSORT \MAX
:Skip_Pack
If Exist Outbound\*.NOT Del Outbound\*.NOT
REM Delete any connection files in Outbound.
If Exist \bink\outbound*.?$? Del \bink\outbound\*.?$?
rem delete old messages and renumber.
Call Compress.Cmd
rem Make sure any left-over mail is bundled up and sent out.
cd \max\Squish
Squish out squash
goto loop
rem ------------------------------------------------------------------------
:MAIL_POLL
cd \max\squish
squish out squash
cd \bink
Omail POLL 109/347
Goto loop
rem ------------------------------------------------------------------------
:MAILIN -- Exit after ARCMail or Packet received, or partial export.
cd \max\squish
squish in out squash link
cd \bink
rem Remapper 30039 -cp -fp
goto loop
rem ------------------------------------------------------------------------
:EXIT
If Exist INBINK Del INBINK >Nul:
\OS2\Mode CO80,50
Echo Returning to OS/2