home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / pstry106.zip / INSTALL.CMD < prev    next >
OS/2 REXX Batch file  |  1996-02-28  |  947b  |  23 lines

  1. /* rexx cmd file to install the Pastry Box on the deskop */
  2. /* files are installed on the boot drive under \OS2\APPS */
  3.  
  4. call rxfuncadd 'sysloadfuncs', 'rexxutil', 'sysloadfuncs'
  5. call sysloadfuncs                /* register system functions */
  6. address cmd '@echo off'          /* echo is turned off */
  7.  
  8. SysBootDrive=Filespec('Drive',Value('SYSTEM_INI',,'OS2ENVIRONMENT'));
  9.  
  10. 'COPY PASTRY.EXE '|| SysBootDrive||'\OS2\APPS'
  11. 'COPY PASTRY.ICO '|| SysBootDrive||'\OS2\APPS'
  12. 'COPY PASTRY.INI '|| SysBootDrive||'\OS2\APPS'
  13.  
  14. Settings = 'EXENAME='SysBootDrive||'\OS2\APPS\PASTRY.EXE;'
  15. Settings = Settings||'PROGTYPE=PM;MINIMIZED=NO;'
  16. Settings = Settings||'ICONFILE='SysBootDrive||'\OS2\APPS\PASTRY.ICO;'
  17. Settings = Settings||'CCVIEW=YES;'
  18. Settings = Settings||'STARTUPDIR='||SysBootDrive||'\OS2\APPS;'
  19. rc=SysCreateObject('WPProgram','Pastry Box','<WP_DESKTOP>',Settings,'R');
  20.  
  21. if rc = 1 then Say "Pastry Box installed on desktop"
  22. Exit
  23.