home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 8 Other
/
08-Other.zip
/
mmpm_ext.zip
/
SETUP.CMD
< prev
Wrap
OS/2 REXX Batch file
|
1994-08-09
|
2KB
|
20 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 */
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 . ':' dirs '\SETUP.CMD' . /* gets the path w/o the drive and the \setup.cmd at the end */
drive=letter":" /* gets the proper drive representation */
'cd 'drive''dirs /* changes to the proper directory of the setup.cmd */
'@'drive
'@setlocal'
'minstall' /* calls the minstall program for the mmpm_ext installation */
'call 'drive''dirs'\addicon.cmd' /* calls the addicon program to place the icon in the */
'@endlocal' /* mwave folder */
'cd \' /* goes back to the root directory of the drive where */
/* setup.cmd is */