home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 18 REXX / 18-REXX.zip / mnrexx10.zip / install.cmd next >
OS/2 REXX Batch file  |  1994-09-11  |  756b  |  36 lines

  1. /*** MNRexx installation script ***/
  2.  
  3. parse arg dllDirectory;
  4.  
  5. if dllDirectory = "" then
  6. do
  7.     dllDirectory = "C:\os2\dll"
  8. end
  9.  
  10. say "installing to" dllDirectory
  11.  
  12. call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
  13. call SysLoadFuncs
  14.  
  15. '@copy MNRexx.dll' dllDirectory
  16.  
  17. if rc \= 0 then
  18. do
  19.     say "cannot copy MNRexx.dll to" dllDirectory
  20.     say "please make sure the directory exists and your harddrive has enough space"
  21.     exit
  22. end
  23.  
  24. if SysRegisterObjectClass("MNRexx", "MNRexx") then
  25. do
  26.     say "MNRexx installation successful"
  27. end
  28. else
  29. do
  30.     say "cannot register MNRexx class"
  31.     say "please make sure the directory" dllDirectory "is in your LIBPATH"
  32.     say "and your harddisk has enough free space"
  33. end
  34.  
  35. exit
  36.