home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 3 Comm / 03-Comm.zip / bw212os2.zip / INSTALL.CMD < prev    next >
OS/2 REXX Batch file  |  1994-01-21  |  1KB  |  61 lines

  1. @echo off
  2. cls
  3. echo Combining BWAVE2.INS with BWAVE2.EA, one moment...
  4. if exist bwave2.exe goto BWAVE2_EXISTS
  5. if not exist bwave2.ins goto MISSING_INS
  6. if not exist bwave2.ea goto MISSING_EA
  7. ren bwave2.ins bwave2.exe > nul
  8. eautil bwave2.exe bwave2.ea /j > nul
  9. if not exist bwave2.exe goto CREATE_ERROR
  10. if exist bwave2.ea goto EAUTIL_ERROR
  11. goto CREATE_OK
  12.  
  13. :CREATE_ERROR
  14. echo.
  15. echo BWAVE2.EXE was not created successfully.
  16. echo.
  17. echo Please be sure that BWAVE2.INS and BWAVE2.EA exist in the current
  18. echo directory, then re-run INSTALL.CMD
  19. goto END
  20.  
  21. :EAUTIL_ERROR
  22. echo.
  23. echo The OS/2 utility EAUTIL.EXE must also be on the system PATH.  EAUTIL.EXE
  24. echo should have been installed from the OS/2 installation disks/CDROM.  If
  25. echo you do not have EAUTIL.EXE, you will be missing the "Wave" icon, which
  26. echo has been attached to the BWAVE2.EXE file as an extended file attribute.
  27. echo.
  28. echo You should still be able to run BWAVE2.EXE normally.
  29. goto END
  30.  
  31.  
  32. :CREATE_OK
  33. echo BWAVE2.EXE has been created successfully.
  34. goto END
  35.  
  36. :MISSING_INS
  37. echo.
  38. echo Cannot locate BWAVE2.INS!
  39. goto EXPLAIN
  40.  
  41. :MISSING_EA
  42. echo.
  43. echo Cannot locate BWAVE2.EA!
  44. goto EXPLAIN
  45.  
  46. :EXPLAIN
  47. echo.
  48. echo BWAVE2.INS and BWAVE2.EA must be in the current directory before running
  49. echo the installation module.
  50. goto END
  51.  
  52. :BWAVE2_EXISTS
  53. echo.
  54. echo BWAVE2.EXE already exists!
  55. echo.
  56. echo You must either delete or rename BWAVE2.EXE before installation.
  57. goto END
  58.  
  59. :END
  60. echo.
  61.