home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: Science / Science.zip / pmwth134.zip / install.cmd < prev    next >
OS/2 REXX Batch file  |  1996-03-27  |  913b  |  29 lines

  1. /* Rexx by: David DuPre */
  2. /* INSTALL.CMD */
  3. /* Recreate the Weather Robo Icon if it is accidentally deleted */
  4.  
  5. parse source one two w3
  6. current=directory()      /* Thanks to:Duane A. Chamblee 1/17/96 */
  7. tgtdrv = substr(w3,1,2)
  8.  
  9. option = "update"
  10.  
  11.  
  12. call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
  13. call SysLoadFuncs
  14.  
  15. /* add the Weather Robo ICON */
  16. Classname= 'WPProgram'
  17. Title =   'WEATHER from the Internet'
  18. Location =  '<WP_DESKTOP>'
  19. Setup = 'EXENAME='current'\PMWEATHR.EXE;OBJECTID=<PMWTHR>;STARTUPDIR='current';ICONFILE='current'\PMWEATHR.ICO'
  20. result=SysCreateObject(classname,Title,Location,Setup,option)
  21.  
  22. Classname= 'WPProgram'
  23. Title =   'Weather Robot'
  24. Location =  '<WP_DESKTOP>'
  25. Setup = 'EXENAME='current'\Wthrrobo.EXE;OBJECTID=<WthrRobo>;STARTUPDIR='current';ICONFILE='current'\WthrRobo.ICO'
  26. result=SysCreateObject(classname,Title,Location,Setup,option)
  27.  
  28. RETURN 0
  29.