home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 2 BBS
/
02-BBS.zip
/
POINTKT3.ZIP
/
LISTGEN.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1990-04-10
|
1KB
|
44 lines
@Echo Here we go...
@Echo off
REM Start with Current NODELIST.A* in C:\Tmp, possible new NODEDIFF.A*
REM in C:\Bink\Inbound. Compile NODELIST.* in C:\Bink\Nodelist, then
REM if new NODELIST, Archive it to C:\Tmp, and delete all NODELIST from
REM C:\Bink\Nodelist, and any NODEDIFF.
Set BBS=C:\Bink
Set BINKLEY=C:\Bink\
Set EXPMSG=2400
Set FILE=C:\Bink\Inbound
Set IN=C:\Bink\Inbound
Set MAIL=C:\Bink\Mail
Set OUT=C:\Bink\Outbound
C:
CD \Bink\Nodelist
If Exist Node*.* Del Node*.* >Nul:
If NOT Exist %FILE%\Nodediff.A* Goto Compile
If Exist C:\Tmp\Nodediff.A* Del C:\Tmp\Nodediff.A* >Nul:
CD %FILE%
For %%D in (Nodediff.A*) Do Set ND=%%D
Copy %FILE%\%ND% C:\Tmp >Nul:
Del %FILE%\%ND% >Nul:
CD \Bink\Nodelist
>Nul: C:\Bink\ARC2 EO C:\Tmp\%ND% Nodediff.*
:Compile
For %%L in (C:\Tmp\Nodelist.A*) Do Set ONLA=%%L
>Nul: ARC2 EO %ONLA% Nodelist.*
For %%O in (Nodelist.*) Do Set ONL=%%O
REM Perform NODELIST 5/6 compile
c:\Bink\ParseLst
If Not ERRORLEVEL 0 Goto Exit
:REM Now delete raw Nodelist
Del %ONL% >Nul:
If NOT Exist Nodediff.* Goto Exit
Del Nodediff.* >Nul:
For %%N in (Nodelist.0* Nodelist.1* Nodelist.2* Nodelist.3*) Do Set NNL=%%N
>Nul: C:\Bink\ARC2 A5 C:\Tmp\%NNL% %NNL%
Ren C:\Tmp\%NNL% NODELIST.A*
Del %NNL% >Nul:
Del %ONLA% >Nul:
CD ..
:Exit
Echo.