home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 31 / CDASC_31_1996_juillet_aout.iso / vrac_os2 / htmle94b.zip / INSTALL.CMD < prev    next >
OS/2 REXX Batch file  |  1996-05-12  |  894b  |  29 lines

  1. /* REXX Install script */
  2.  
  3. call RxFuncAdd "SysLoadFuncs", "RexxUtil", "SysLoadFuncs"
  4. call SysLoadFuncs
  5.  
  6. say "A program icon will be created for HTML-Ed v0.94b in THIS DIRECTORY."
  7. say "Continue?"
  8.  
  9. parse pull ian
  10. if ian='n' then exit
  11. if ian='N' then exit
  12.  
  13. exename = Directory()'\HTMLED.EXE'
  14. startupdir = Directory()
  15. objsettings = 'EXENAME='exename';STARTUPDIR='startupdir';PARAMETERS=%*;PROGTYPE=PM;MINIMIZED=NO;ICONFILE=HTMLED.ICO'
  16.  
  17. say
  18. say "Do you want to associate *.HTM? files with HTML-Ed?"
  19. say "This will allow you to double-click on an HTML file to launch HTML-Ed."
  20. parse pull ian
  21. if ian='y' then objsettings = objsettings';ASSOCFILTER=*.HTM?'
  22. say
  23.  
  24. rc = SysCreateObject('WpProgram', 'HTML-Ed v0.93b', '<WP_DESKTOP>', objsettings, 'replace')
  25. if rc != 1 then say "Error creating program object!"
  26. else say "Program object created successfully!"
  27.  
  28. call SysDropFuncs
  29.