home *** CD-ROM | disk | FTP | other *** search
/ Black Box 4 / BlackBox.cdr / os2 / os2_demo.arj / OS2_DEMO.TD0 / INSTALL.BAT next >
Encoding:
DOS Batch File  |  1991-09-23  |  1.4 KB  |  68 lines

  1. @echo off
  2. cls
  3. echo.
  4. echo.
  5. echo IBM OS/2 2.0 Presentation
  6. echo Version 1.0 
  7. echo.
  8. echo This program requires 2.5Mb of available hard disk space 
  9. echo to install.
  10. echo.
  11. echo The program requires VGA graphics and 490K of available RAM.
  12. echo.
  13. if "%1" =="" goto param
  14. if "%2" =="" goto param
  15. goto ok
  16. :param
  17. echo The IBM OS/2 2.0 Presentation will be installed to 
  18. echo a directory called \OS2PRES on your hard disk.
  19. echo.
  20. echo To install the IBM OS/2 2.0 Presentation, please
  21. echo give the command INSTALL [src_drive] [dest_drive]
  22. echo.
  23. echo For example, to install from the A: floppy drive 
  24. echo to the C: drive, give the command:
  25. echo.
  26. echo      INSTALL A: C:
  27. echo.
  28. goto end
  29. :ok
  30. echo Ready to install from %1 to %2\OS2PRES.  
  31. echo Please press Ctrl-C now to abort or
  32. pause
  33. if not exist %1os2_2.exe goto err1
  34. %2
  35. md \OS2PRES
  36. cd \OS2PRES
  37. echo test >>t__est.tst
  38. if not exist %2\OS2PRES\t__est.tst goto err4
  39. del t__est.tst
  40.  
  41. %1os2_2.exe
  42. if ERRORLEVEL 1 goto err3
  43. echo.
  44. echo Installation Complete.
  45. echo.
  46. echo Type 
  47. echo      IBM
  48. echo to run the IBM OS/2 2.0 Presentation
  49. goto end
  50.  
  51. :err1
  52. echo Error:  Can not find the installation file %1OS2_2.exe.
  53. goto end
  54. :err2
  55. echo Error:  Could not create directory %2.
  56. goto end
  57. :err3
  58. echo 
  59. echo Error:  Problem expanding files; installation not completed.
  60. goto end
  61. :err4
  62. echo Error:  Could not create directory %2.
  63. del t__est.tst
  64. goto end
  65. :end
  66.  
  67.  
  68.