home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-386-Vol-2of3.iso / b / bc3.zip / INSTALL.BAT < prev    next >
DOS Batch File  |  1992-02-19  |  2KB  |  80 lines

  1.     echo off
  2.  
  3. rem Qualitas DPMI library installation
  4. rem (c) 1992 Qualitas, Inc.  All rights reserved.
  5.  
  6. rem %1 == "install to" path
  7. rem %2 == DPMI library
  8. rem %3 == source floppy (optional, default=A)
  9.  
  10. rem Test for library selection
  11.     if "%2"=="bc2"  goto LIB_OK
  12.     if "%2"=="bc3"  goto LIB_OK
  13.     if "%2"=="msc6" goto LIB_OK
  14.     if "%2"=="msc7" goto LIB_OK
  15.     if "%2"=="BC2"  goto LIB_OK
  16.     if "%2"=="BC3"  goto LIB_OK
  17.     if "%2"=="MSC6" goto LIB_OK
  18.     if "%2"=="MSC7" goto LIB_OK
  19.     rem Wrong or no library selected
  20.     goto ERROR
  21.  
  22. rem Library is valid
  23.    :LIB_OK
  24.  
  25. rem Test for path selection
  26.     rem make directory
  27.     if not exist %1\*.* md %1
  28.  
  29. rem Test for floppy specification
  30.     rem Assume no specified floppy
  31.     set DPMI_FLOPPY=A
  32.     rem Check for no room in the environment
  33.     if "%DPMI_FLOPPY%"=="" goto NOROOM
  34.     if not "%3"=="" set DPMI_FLOPPY=%3
  35.  
  36. rem Unzip files for %2 into %1
  37.     rem first display license.txt
  38.     type %DPMI_FLOPPY%:license.txt
  39.     pause
  40.     %DPMI_FLOPPY%:pkunzip -d %DPMI_FLOPPY%:\%2 %1
  41.     echo Installation complete!
  42.     goto END
  43.  
  44. :NOROOM
  45. echo We need to define a small variable and
  46. echo find there isn't enough room in your
  47. echo environment.  Please increase it by 32
  48. echo bytes and re-run this batch file.
  49.     goto END
  50.  
  51. :ERROR
  52. echo.
  53. echo Use the following syntax to install
  54. echo the Qualitas DPMI Library:
  55. echo.
  56. echo INSTALL path library [source drive]
  57. echo.
  58. echo where "path" points to the directory into which
  59. echo the DPMI library will be installed and "library"
  60. echo is the specific version of the DPMI library
  61. echo you wish installed.  Source drive is the floppy drive
  62. echo from which you are installing (default = A)
  63.  
  64. echo Select the library from the following:
  65. echo.
  66. echo    BC2      Borland C++ version 2.x comaptible library
  67. echo    BC3      Borland C++ version 3.x comaptible library
  68. echo    MSC6     Microsoft C verson 6.x comaptible library
  69. echo    MSC7     Microsoft C verson 7.x comaptible library
  70. echo.
  71. echo Example:  INSTALL C:\TOOLS MSC6 B
  72. echo.
  73. echo would install the Microsoft C 6 compatible DPMI library
  74. echo from B: to C:\TOOLS.
  75.  
  76.     :END
  77. rem Clear environment variable
  78.     set DPMI_FLOPPY=
  79.  
  80.