home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 2 BBS
/
02-BBS.zip
/
a2mfv10.zip
/
A2MF.Cmd
next >
Wrap
OS/2 REXX Batch file
|
1996-01-11
|
2KB
|
53 lines
/* ************************************* */
/* ┌───────────────────────────────────┐ */
/* │ ╓──┐╥ ─╥─ ╥──┐╓──┐╓──┐╥──┐╓─╥─┐ │ */
/* │ ║ ║ ║ ╟──┘╙──┐║ │╟─ ║ │ */
/* │ ╙──┘╨──┘─╨─ ╨ ╙──┘╙──┘╨ ╨ │ */
/* │ ────═════ A2MF v1.0 ═════──── │ */
/* │ │ */
/* │A2MF is a utility for AdeptXBBS to │ */
/* │convert File_Areas -> areas.cfg so │ */
/* │its possible to edit the files.bbs │ */
/* │with Maxfile/PM. │ */
/* │ │ */
/* └─────════ By Koen Koster ════──────┘ */
/* Any comments, questions, thanks msgs? */
/* Send them to: kkoster@cistron.nl */
/* 2:281/602.0@FidoNet */
/* 55:66/0.0@AdeptNet */
/* ************************************* */
areafile = '\adept\system\file_areas'
outfile = 'areas.cfg'
areas = '1'
rc = stream( areafile, 'c', 'open read' )
rc = stream( outfile, 'c', 'open write' )
Call LineOut outfile,"AreaCount "
Do While Lines(areafile)
line = LineIn(areafile)
parse var line keyword value
Select
When keyword = 'NUMBER' Then Do
num = strip(value)
areas = areas + 1
End
When keyword = 'DESC' Then
desc = strip(value)
When keyword = 'DLPATH' Then
dlpath = strip(value)
When keyword = 'AREAEND' Then
Call LineOut outfile, Left(num,6)''dlpath' 'dlpath'\files.bbs 'desc
Otherwise
Nop
End
End
Call Lineout outfile,'AreaCount 'areas,1
rc = stream( areafile, 'c', 'close' )
rc = stream( outfile, 'c', 'close' )