home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 11 Util
/
11-Util.zip
/
zipedsos.zip
/
INSTALL.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1993-07-19
|
4KB
|
182 lines
/* INSTALL - SOS and Maxi Menu */
/* Copyright (c) 1993 Client Server Networking Inc. */
ECHO OFF
call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'sysLoadFuncs'
call SysLoadFuncs
'mode co80,15'
r=syscls()
pos=SysCurPos(0,0)
call logo
say ' Enter drive to install to'
pos=syscurpos(10,30)
pull drive
say
if length(drive)>1 then drive=left(drive,1)
rc=sysmkdir(drive||':\SOS')
if rc=3 then say ' Error creating SOS directory '
if rc=3 then exit
rc=sysmkdir(drive||':\Maxi')
if rc=3 then say ' Error creating MAXI directory '
if rc=3 then exit
/* file copies */
'copy EVAIL.DOC '||drive||':\maxi'
'copy LICENSE.DOC '||drive||':\maxi'
'copy KL128394.CMD '||drive||':\maxi'
'copy E001694.CMD '||drive||':\maxi'
'copy MENU.DAT '||drive||':\maxi'
'copy PM165594.CMD '||drive||':\maxi'
'copy P465799.CMD '||drive||':\maxi'
'copy P081894.CMD '||drive||':\maxi'
'copy P441894.CMD '||drive||':\maxi'
'copy P501994.CMD '||drive||':\maxi'
'copy J342094.CMD '||drive||':\maxi'
'copy P062394.CMD '||drive||':\maxi'
'copy E282594.CMD '||drive||':\maxi'
'copy N154594.CMD '||drive||':\maxi'
'copy O189895.CMD '||drive||':\maxi'
'copy MAXI.EXE '||drive||':\maxi'
'copy MAXI.ICO '||drive||':\maxi'
'copy MM.INF '||drive||':\maxi'
'copy P448799.CMD '||drive||':\maxi'
'copy P545699.CMD '||drive||':\maxi'
'copy EVAIL.DOC '||drive||':\sos'
'copy LICENSE.DOC '||drive||':\sos'
'Copy SOS.INF '||drive||':\sos'
'Copy SOS.EXE '||drive||':\sos'
'Copy SOS.ICO '||drive||':\sos'
'Copy A.CMD '||drive||':\sos'
'Copy B.CMD '||drive||':\sos'
'Copy C.CMD '||drive||':\sos'
'Copy D.CMD '||drive||':\sos'
'Copy E.CMD '||drive||':\sos'
'Copy F.CMD '||drive||':\sos'
'Copy EDIT.PRO '||drive||':\sos'
'Copy MINIMENU.DAT '||drive||':\sos'
'Copy SOS.BMP '||drive||':\sos'
'Copy OS2CMD.CMD '||drive||':\sos'
/* SOS */
defaultdir=drive||':\sos\'
location='<WP_DESKTOP>'
classname='WPProgram'
title='Son of Shell'
startdir='STARTUPDIR='||defaultdir||';'
objectid='OBJECTID=<'sos'>;'
exename='EXENAME='||defaultdir||'sos.exe;'
setup=objectid||exename||startdir
result = SysCreateObject(classname, title, location, setup, 'R')
/* Maxi Menu */
defaultdir=drive||':\maxi\'
location='<WP_DESKTOP>'
classname='WPProgram'
title='Maxi Menu'
startdir='STARTUPDIR='||defaultdir||';'
objectid='OBJECTID=<'maxi'>;'
exename='EXENAME='||defaultdir||'maxi.exe;'
setup=objectid||exename||startdir
result = SysCreateObject(classname, title, location, setup, 'R')
exit /* leave program */
logo:
call setCVALUES
'ECHO ON'
call setNormColors
'CLS'
'ECHO OFF'
say' ┌─────────────────────────────────────────────────────────┐'
say' │ Son of Shell and Maxi Menu will be installed in dirs: │'
say' │ :\SOS │'
say' │ :\MAXI │'
say' │ │'
say' │ An ICON to execute both will be placed on the desktop. │'
say' │ │'
say' ├─────────────────────────────────────────────────────────┤'
say' │ Copyright (c) 1993 Client Server Networking Inc beta │'
say' └─────────────────────────────────────────────────────────┘'
return
docolor:
ECHO On
'prompt $p$E[0;'cfore';'cback';'ifore';'iback'm]'
ECHO Off
return
/* set foreground & background colors */
setCVALUES:
fBLACK=30
fRED=31
fGREEN=32
fYELLOW=33
fBLUE=34
fMAGENTA=35
fCYAN=36
fWHITE=37
bBLACK=40
bFRED=41
bGREEN=42
bYELLOW=43
bBLUE=44
bMAGENTA=45
bCYAN=46
bWHITE=47
low=1
high=5
return
setNormColors:
cfore=fBLUE
cback=bWHITE
IBACK=high
ifore=high
call docolor
return