home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 31 / CDASC_31_1996_juillet_aout.iso / vrac_os2 / pmwthr.zip / INSTALL.CMD < prev    next >
OS/2 REXX Batch file  |  1996-03-08  |  895b  |  27 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. call RxFuncAdd 'SysCreateObject','RexxUtil','SysCreateObject'
  12.  
  13. /* add the Weather Robo ICON */
  14. Classname= 'WPProgram'
  15. Title =   'WEATHER from the Internet'
  16. Location =  '<WP_DESKTOP>'
  17. Setup = 'EXENAME='current'\PMWEATHR.EXE;OBJECTID=<PMWTHR>;STARTUPDIR='current';ICONFILE='current'\PMWEATHR.ICO'
  18. result=SysCreateObject(classname,Title,Location,Setup,option)
  19.  
  20. Classname= 'WPProgram'
  21. Title =   'Weather Robot'
  22. Location =  '<WP_DESKTOP>'
  23. Setup = 'EXENAME='current'\Wthrrobo.EXE;OBJECTID=<WthrRobo>;STARTUPDIR='current';ICONFILE='current'\WthrRobo.ICO'
  24. result=SysCreateObject(classname,Title,Location,Setup,option)
  25.  
  26. RETURN 0
  27.