home *** CD-ROM | disk | FTP | other *** search
/ The Best of Select: Games 3 / cd.iso / os2 / scorcard / install.cmd < prev   
OS/2 REXX Batch file  |  1993-11-27  |  986b  |  51 lines

  1. /* Install Score Card on version 2.x OS/2 systems */
  2.  
  3. '@Echo OFF'
  4.  
  5. 'call help off'
  6.  
  7. call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
  8.  
  9. call SysLoadFuncs
  10.  
  11. call SysCls
  12.  
  13. call beep 262,250
  14.  
  15. say center('Installation for Score Card on version 2.x OS/2 systems',79)
  16. say ''
  17. say center('Touch the key which represents the drive letter',79)
  18. say center('where you wish Score Card to be installed.',79)
  19. drv=SysGetKey(NOECHO)
  20.  
  21. call SysCls
  22.  
  23. say 'Copying files.'
  24.  
  25. call SysMkDir drv':\golf'
  26. 'attrib -r ' drv':\golf\*.* >nul'
  27. copy '*.*' drv':\golf >nul'
  28.  
  29. call SysCls
  30.  
  31. say 'Files copied, adding Score Card to DeskTop.'
  32.  
  33. clas='WPProgram'
  34. titl='Score Card'
  35. loc='<WP_DESKTOP>'
  36. setup='OBJECTID=<SCORECARD>'||,
  37.       'PROGTYPE=PM;'||,
  38.       'EXENAME='drv':\GOLF\GOLF.EXE;'||,
  39.       'STARTUPDIR='drv':\GOLF;'||,
  40.       'MINWIN=HIDE'
  41. dup='R'
  42.  
  43. retcode=SysCreateObject(clas,titl,loc,setup,dup)
  44.  
  45. say ''
  46. say 'Installation finished'
  47.  
  48. call SysDropFuncs
  49.  
  50. exit
  51.