home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 2 BBS
/
02-BBS.zip
/
mfreqv10.zip
/
MakeFreq.Cmd
< prev
Wrap
OS/2 REXX Batch file
|
1996-01-11
|
2KB
|
76 lines
/* ************************************* */
/* ┌───────────────────────────────────┐ */
/* │ ╓──┐╥ ─╥─ ╥──┐╓──┐╓──┐╥──┐╓─╥─┐ │ */
/* │ ║ ║ ║ ╟──┘╙──┐║ │╟─ ║ │ */
/* │ ╙──┘╨──┘─╨─ ╨ ╙──┘╙──┘╨ ╨ │ */
/* │ ────═════ MakeFreq v1.0 ═════──── │ */
/* │ │ */
/* │MakeFreq is a utility for AdeptXBBS│ */
/* │to create fast and easy a Public.ok│ */
/* │file from the File_Areas file. This│ */
/* │utility supports Magic filenames! │ */
/* │ │ */
/* └─────════ By Koen Koster ════──────┘ */
/* Any comments, questions, thanks msgs? */
/* Send them to: kkoster@cistron.nl */
/* 2:281/602.0@FidoNet */
/* 55:66/0.0@AdeptNet */
/* ************************************* */
/* ***** Start Configurable section **** */
areafile = '\adept\system\file_areas' /* Your file_areas file */
magicfile = 'magic.txt' /* Your magicname file */
outfile = 'Public.Ok' /* Output request file */
/* ****** End Configurable Section ***** */
rc = stream( magicfile, 'c', 'open read' )
magicnr = '1'
check = lines(magicfile)
Do While check > 0
line = LineIn(magicfile)
Call LineOut outfile,line
magicnr =magicnr + 1
check = lines(magicfile)
End
rc = stream( magicfile, 'c', 'close' )
rc = stream( areafile, 'c', 'open read' )
rc = stream( outfile, 'c', 'open write' )
Call SysCls
starttime = Time('E')
startnr = '1'
oldstartnr = startnr
Do While Lines(areafile)
line = LineIn(areafile)
parse var line keyword value
Select
When keyword = 'DLPATH' Then
path = strip(value)
When keyword = 'AREAEND' Then Do
Call LineOut outfile,path'\*.*'
startnr = startnr + 1
End
Otherwise
Nop
End
End
Back:
totalnr = (startnr - oldstartnr)
curtime = time('R')
newtime = format(curtime,,2)
Say ' '
Say ' '
Say 'Total: 'totalnr' File Areas and 'magicnr' MagicNames Processed'
Say ' in 'newtime' seconds by MakeFreq.'
Say ' '
Say 'OutPut File : 'outfile
Say ' '
Say 'Thanks for using MakeFreq and have a Nice Day!'
rc = stream( magicfile, 'c', 'close' )
rc = stream( areafile, 'c', 'close' )
rc = stream( outfile, 'c', 'close' )