home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 8 Other / 08-Other.zip / mmpm_ext.zip / SETUP.CMD < prev   
OS/2 REXX Batch file  |  1994-08-09  |  2KB  |  20 lines

  1. /* rexx */
  2. /* This test code changes current drive to the one where the */
  3. /* executable is found */
  4.  
  5. call rxfuncadd sysloadfuncs, rexxutil, sysloadfuncs      /* this line installs the REXX utils */
  6. call sysloadfuncs                                                    /* along with this one                 */
  7. parse source . . filename .                                 /* gets the path of the setup.cmd file        */
  8. parse UPPER var filename  letter ':' .                  /* for ease of parsing we convert the string to upper */
  9.                                                                     /*case before wer parse it for the letter. */
  10. parse UPPER var filename . ':' dirs '\SETUP.CMD' .  /* gets the path w/o the drive and the \setup.cmd at the end */
  11. drive=letter":"                                                /* gets the proper drive representation */
  12. 'cd 'drive''dirs                                                 /* changes to the proper directory of the setup.cmd */
  13. '@'drive
  14. '@setlocal'
  15. 'minstall'                                                       /* calls the minstall program for the mmpm_ext installation */
  16. 'call 'drive''dirs'\addicon.cmd'                           /* calls the addicon program to place the icon in the */
  17. '@endlocal'                                                   /* mwave folder  */
  18. 'cd \'                                                           /* goes back to the root directory of the drive where */
  19.                                                                  /* setup.cmd is   */
  20.