home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 17 Fixes30
/
17-Fixes30.zip
/
csdmm102.dsk
/
MMPMV211
/
SETUP.CMD
Wrap
OS/2 REXX Batch file
|
1995-04-26
|
2KB
|
36 lines
/* rexx */
/* This test code changes current drive to the one where the */
/* executable is found */
call rxfuncadd sysloadfuncs, rexxutil, sysloadfuncs /* this line installs the REXX utils */
call sysloadfuncs /* along with this one */
minstdir=SysSearchPath('PATH','MINSTALL.EXE')
parse UPPER var minstdir mmos2dir '\MINSTALL.EXE'
parse UPPER var minstdir letter ':' .
os2drive=letter":"
os2drive
'@'os2drive
'@setlocal'
cd mmos2dir
md 'AUDIODD'
mmos2dir=mmos2dir'\AUDIODD'
parse source . . filename . /* gets the path of the setup.cmd file */
parse UPPER var filename letter ':' . /* for ease of parsing we convert the string to upper */
/*case before wer parse it for the letter. */
parse UPPER var filename srcpath '\SETUP.CMD' /* gets the path where SETUP.CMD is being executed, w/o \SETUP.CMD at the end */
parse UPPER var filename . ':' dirs '\SETUP.CMD' . /* gets the path w/o the drive and the \setup.cmd at the end */
drive=letter":"
'cd 'drive''dirs /* changes to the proper directory of the setup.cmd */
'@'drive
src=srcpath'\AUDIODD\AUXCTL.*'
copy src mmos2dir
'call 'drive''dirs'\addicon.cmd' /* calls the addicon program to place the icon in the */
'minstall' /* calls the minstall program for the mmpm_ext installation */
'@endlocal' /* mwave folder */
/* goes back to the root directory of the drive where SETUP.CMD is */