home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 2 BBS
/
02-BBS.zip
/
347CONFG.ZIP
/
BBS.CMD
next >
Wrap
OS/2 REXX Batch file
|
1994-06-21
|
2KB
|
69 lines
@Echo off
Set TZ=EST5EDT
Set Node=17
set tmp=c:\Bink1\tmp
CD \Bink1
If Exist INBINK Goto EXIT
\OS2\Mode CO80,33
setwin minimize move 860 110 restore move 500 144 minimize
DMODE COM27:38400,N,8,1,TO=ON,XON=OFF,DTR=OFF,IDSR=OFF,ODSR=OFF,OCTS=ON,RTS=HS
:LOOP
If Exist \Bink1\Inbound\*.REQ Del \Bink1\Inbound\*.REQ
CD \Bink1
Echo INBINK >INBINK
BTP %1 Dynam Share Unattended
If ERRORLEVEL 21 Goto LOOP
If ERRORLEVEL 20 Goto NIGHT
If ERRORLEVEL 14 Goto MAILIN
If ERRORLEVEL 13 Goto MAILIN
If ERRORLEVEL 2 Goto LOOP
If ERRORLEVEL 1 Goto EXIT
If ERRORLEVEL 0 Goto LOOP
Goto LOOP
:MAILIN
if NOT EXIST c:\Bink1\Inbound\*.tic Goto skip_tick
call tickin.cmd
cd \Node2
:Skip_Tick
cd \Squish
squish in out squash link
cd \Bink1
Goto LOOP
:NIGHT
rem Start /fs Maxlog.Cmd
cmd /kMaxlog.Cmd
REM Update ALLFILES.TXT
rem Start /fs /i Files.Cmd
cmd /kFiles.Cmd
If Exist \max\active??.BBS Goto Skip_Pack
\MAX\MAXUSORT \MAX /D150N /D90L /D90D /D1T
:Skip_Pack
If Exist Outbound\*.NOT Del Outbound\*.NOT
rem Delete any connection files in Outbound.
If Exist %OUT%\*.?$? Del %OUT%\*.?$?
rem delete all the messages in the DUPE directory
del \Bink1\Dupes\*.msg
rem delete old messages and renumber.
cd \Max
If Exist \max\active??.BBS Goto Skip_Compress
cd \Squish
sqpack \max\area.dat
:Skip_Compress
rem Make sure any left-over mail is bundled up and sent out.
cd \Squish
Squish out squash
cache386 /lazy:off
\gamma32\reboot
goto loop
:EXIT
If Exist INBINK Del INBINK >Nul: