home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1994 #1
/
monster.zip
/
monster
/
MAXIMUS
/
CDCAR_13.ZIP
/
CDMENU.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1994-02-18
|
5KB
|
133 lines
/* CD Carousel Door */
/* v1.3 */
/* by Bill Esposito */
/* The Cereal Port BBS */
/* 1:132/152 */
/* (603)899-3335 */
/* */
/* Magic name 'CDCAR' */
/* for latest version */
/* */
/* *********************************************************************** */
/* DISCLAIMER: This software is provided "AS IS" without any warranty of */
/* any kind, either expressed or implied. USE IT AT YOUR OWN RISK. */
/* */
/* Copyright 1993 by Bill Esposito. This program is SHAREWARE. Please */
/* read the file SHAREWRE.TXT included in this archive. */
/* *********************************************************************** */
/* ***** CDMENU.CMD ***** */
/* The CD Carousel Menu program. */
/***************************************************************************/
config=cdcar.cfg
ver='v1.3'
f=1
do until lines(config)=0
param.f=linein(config)
f=f+1
end
ok=stream(config,c,'close')
parse var param.1 default junk
parse var param.3 homedir junk
parse var param.5 download junk
parse var param.6 fnum junk
parse var param.7 type junk
parse var param.8 marea junk
parse var param.9 tnode junk
parse var param.10 fnode junk
parse var param.11 sysopfirst sysoplast junk
yel='
'
cyan='
'
brt='
'
call RxFuncAdd 'SysloadFuncs','RexxUtil','Sysloadfuncs'
call sysloadfuncs
menu:
say '
HOS/2
OS/2
OS/2
OS/2
OS/2'
say '1H
OS/2
OS/2
OS/2
OS/2
OS/2
OS/2
OS'
say '7H/2
OS/2
OS/2
OS/2
OS/2
OS/2
OS/2
OS'
say '5H/2
OS/2
HS 0HOH/0HSH20H'
say '0H/
HO
0HCD
Carousel Door0H2
H'
say 'HS
5H'ver'
0HOH/
1H 4H
'
say '0HBy Bill Esposito
0HSH2
9H**
'
say '2HUNREGISTERED
5H**
0H/
HO
9H'
say '9H
0H2
1HS
3H'
say '11H
40H 80HO'
say '1H/
30HS
et-up new
cd
80HS
'
say '1H2
25H
80H/
'
say '1HO
30HF
ill
file requests
80H2'
say '
1HS
27H
80H'
say '80HO1H/
28H
30HL
ocal
'
say '36HCD
Carousel
48H
80HS1H2
'
say '28H
80H/
1HO
'
say '30HR
eview error log
80H2
1HS
'
say '26H
80HO1H/'
say '
30HQ
uit
49H
80HS1H2'
say '31H 80H/
1HO30HSelect:
80H2'
say '
1HS80HO1H/2
OS/2
OS/2
OS/2
OS/2'
say '19H
OS/2
OS/2
OS/2
OS/2
OS/2
OS/2
O'
say '44HS/2
OS/2
OS/2
OS/2
OS/2
OS/2
OS/2
'
say '71HOS/2
OS/2
OS1H
'
call syscurpos 20, 36
pull select
if select='S' then call cdconvrt.cmd 1
if select='F' then call cdmaint.cmd 1
if select='L' then call cdcar homedir 1 1 sysopfirst sysoplast
if select='R' then call errors
if select='Q' then call quit
if select<>'S' then if select<>'F' then if select<>'L' then if select<>'Q' then call menu
quit:
exit
errors:
/* Read */
read:
file=homedir'errors.log'
ok=stream(file,c,'close')
call sysfiletree file, 'err.', 'F'
if err.0=0 then call qdel
x=1
loop:
y='1'
linein(file,1,0)
'@cls'
loop2:
do until x > 23
say ''linein(file)''
if lines(file)=''0'' then call qdel
/* say 'Press the <ENTER> key to continue'
pull enter
call qdel
end */
x=x+y
end
more:
x=1
say 'more? (Y,n)'
pull yn
if yn='N' then call qdel
else
call loop2
call qdel
qdel:
ok=stream(file,c,'close')
if err.0=1 then do
say
say brt||yel'Do you want to delete the Error Log? (y,N)'cyan
pull yn
if yn='Y' then del file
end
if err.0=0 then do
'@cls'
say
say brt||yel'There are no errors reported.'
say 'Press <ENTER> to continue.'
pull yn
end
call menu
more1:
say 'more? (Y,n)'
pull yn
if yn='N' then call menu