home *** CD-ROM | disk | FTP | other *** search
/ Freesoft 1997 May / Freesoft_1997-05_cd.bin / inzer / minolta / Minolta / INSTALL.CMD < prev    next >
OS/2 REXX Batch file  |  1997-05-04  |  645b  |  17 lines

  1. /* This is the outer level script. */
  2. /* It runs its own name on the inner directory */
  3.  
  4. /* Get the directory that this script is in */
  5. PARSE SOURCE cmdDir
  6. cmdDir=WORD(cmdDir,WORDS(cmdDir))             /* The command line string */
  7. Command=SUBSTR(cmdDir,LASTPOS('\',cmdDir)+1)  /* The command name itself */
  8. cmdDir=LEFT(cmdDir,LASTPOS('\',cmdDir)-1)     /* The path to this command */
  9.  
  10. /* This is where the product name would be placed:  */
  11. /* Beware of trailing space as padding for zapping! */
  12. Product='Minolta' 
  13.  
  14. /* Now, we run the install script that is in the product directory */
  15. cmd='@CALL' cmdDir'\'Product'\'Command
  16. cmd
  17.