home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 9 Archive / 09-Archive.zip / pmzip01.zip / install.cmd < prev    next >
OS/2 REXX Batch file  |  1994-08-01  |  769b  |  34 lines

  1. /************************************************/
  2.  
  3. signal on halt name SignalHandler       /* Exception handler */
  4.  
  5. call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
  6. call SysLoadFuncs
  7.  
  8. parse arg NewFileName
  9.  
  10. if NewFileName="" then
  11.   NewFileName="pmzip.exe"
  12.  
  13. SetupString="TITLE=zipmeister;OBJECTID=<ZIPMEISTER>;ASSOCFILTER=*.ZIP;EXENAME="NewFileName
  14.  
  15. rc=SysCreateObject("WPProgram",,
  16.      NewFileName,,
  17.      "<WP_DESKTOP>",,
  18.      SetupString)
  19.  
  20. if rc=0 then
  21.   say "Sorry, couldn't create the zipmeister program object"
  22. else do
  23.   say "The zipmeister program object has been created on your"
  24.   say "OS/2 Desktop.  Its object ID is <ZIPMEISTER>."
  25. end
  26.  
  27. exit
  28.  
  29.  
  30. SignalHandler:
  31.   call SysCls
  32.   say "abnormal error - exiting..."
  33.   exit
  34.