home *** CD-ROM | disk | FTP | other *** search
/ High Voltage Shareware / high1.zip / high1 / DIR24 / 85OS2B21.ZIP / CLI1620.BAT < prev    next >
DOS Batch File  |  1993-07-14  |  5KB  |  119 lines

  1. @if "%1"=="" goto usage
  2. @if "%2"=="" goto usage
  3. @echo - Cirrus Logic 16 colors display driver installation for OS/2 2.0...
  4. @echo -
  5. @echo - Before installing the Cirrus Logic drivers, you'll need to boot
  6. @echo - from a DOS diskette or ESC out of the OS/2 2.0 installation diskette
  7. @echo - one to run this script file.  Type Control-C to abort the execution
  8. @echo - of the script file.
  9. @echo -
  10. @pause
  11. @rem ---------------------------------------------------------------------
  12. @echo - saving original files . . .
  13.  
  14. @if exist %1:\os2\screen01._cl           goto sav1
  15. @if exist %1:\os2\screen01.sys copy %1:\os2\screen01.sys %1:\os2\screen01._cl >nul
  16.  
  17. :sav1
  18. @if exist %1:\os2\screen02._cl           goto sav2
  19. @if exist %1:\os2\screen02.sys copy %1:\os2\screen02.sys %1:\os2\screen02._cl >nul
  20.  
  21. :sav2
  22. @if exist %1:\os2\svga._cl               goto sav3
  23. @if exist %1:\os2\svga.exe copy %1:\os2\svga.exe %1:\os2\svga._cl >nul
  24.  
  25. :sav3
  26. @if exist %1:\os2\dll\bvhsvga._cl        goto sav4
  27. @if exist %1:\os2\dll\bvhsvga.dll copy %1:\os2\dll\bvhsvga.dll %1:\os2\dll\bvhsvga._cl >nul
  28.  
  29. :sav4
  30. @if exist %1:\os2\dll\cldsp\display._cl goto sav5
  31. @if exist %1:\os2\dll\cldsp\display.dll copy %1:\os2\dll\cldsp\display.dll %1:\os2\dll\cldsp\display._cl >nul
  32.  
  33. :sav5
  34. @if exist %1:\os2\dll\cldsp\monitor._cl       goto sav6
  35. @if exist %1:\os2\dll\cldsp\monitor.dll copy %1:\os2\dll\cldsp\monitor.dll %1:\os2\dll\cldsp\monitor._cl >nul
  36.  
  37. :sav6
  38. @if exist %1:\os2\mdos\vsvga._cl         goto sav7
  39. @if exist %1:\os2\mdos\vsvga.sys copy %1:\os2\mdos\vsvga.sys %1:\os2\mdos\vsvga._cl >nul
  40.  
  41. :sav7
  42. @rem ---------------------------------------------------------------------
  43. @if not exist %1:\os2\dll\cldsp\monitor.dll  md %1:\os2\dll\cldsp >nul
  44.  
  45. :dsk2
  46. @echo - please insert display driver diskette two
  47. @pause
  48. @if not exist os2_2 goto dsk2
  49.  
  50. @if %2==6 goto 600
  51. @if %2==7 goto 768
  52. @copy sv48016.dll  %1:\os2\dll\cldsp\monitor.dll >nul
  53. @copy display.dll       %1:\os2\dll\cldsp  >nul
  54. @goto inst
  55.  
  56. :600
  57. @copy sv60016.dll  %1:\os2\dll\cldsp\monitor.dll >nul
  58. @copy display.dll       %1:\os2\dll\cldsp  >nul
  59. @goto inst
  60.  
  61. :768
  62. @copy sv76816.dll  %1:\os2\dll\cldsp\monitor.dll >nul
  63. @copy display.dll       %1:\os2\dll\cldsp  >nul
  64.  
  65. :inst
  66. @echo - please insert display driver diskette one
  67. @pause
  68. @if not exist os2_1 goto inst
  69.  
  70. @if exist %1:\os2\screen01.sys copy screen01.sys %1:\os2 >nul
  71. @if exist %1:\os2\screen02.sys copy screen02.sys %1:\os2 >nul
  72. @copy svga.exe          %1:\os2 >nul
  73. @copy bvhsvga.dll       %1:\os2\dll  >nul
  74. @copy vsvga.sys         %1:\os2\mdos >nul
  75.  
  76. @echo -
  77. @echo - Before rebooting to OS/2 for the new drivers to take effect...
  78. @echo -
  79. @echo - 1. please edit OS/2's config.sys file with the following settings
  80. @echo -
  81. @echo -    add C:\OS2\DLL\CLDSP; to the immediate right of LIBPATH=
  82. @echo -
  83. @echo -    set video_devices=vio_SVGA
  84. @echo -    set vio_SVGA=device(bvhvga,BVHSVGA)
  85. @echo -    device=c:\os2\mdos\VSVGA.SYS
  86. @echo -
  87. @echo - 2. if you booted from a DOS disk to install the drivers, type
  88. @echo -    \OS2\SVGA ON DOS to write svgadata.dos in the current directory,
  89. @echo -    then copy svgadata.dos to \os2\svgadata.pmi
  90. @echo -
  91. @echo - 3. if you ESCaped out of the OS/2 2.0 installation diskette one to
  92. @echo -    install the drivers, you'll need to reboot to OS/2 first, then
  93. @echo -    bring up a DOS full screen session, type \OS2\SVGA ON to create
  94. @echo -    the svgadata.pmi file, type exit at the command prompt, shutdown
  95. @echo -    the system and reboot to OS/2 again
  96. @echo -
  97. @goto home
  98.  
  99. :usage
  100. @echo *------------------------------------------------------------------*
  101. @echo * Cirrus Logic SVGA installation for OS/2 2.0...                   *
  102. @echo *==================================================================*
  103. @echo *                                                                  *
  104. @echo * Please specify the drive letter for the files to be copied to... *
  105. @echo * and the vertical display resolution of choice...                 *
  106. @echo *                                                                  *
  107. @echo *    640 x 480 x 16 ---- type 4 (default)                          *
  108. @echo *    800 x 600 x 16 ---- type 6                                    *
  109. @echo *   1024 x 768 x 16 ---- type 7                                    *
  110. @echo *                                                                  *
  111. @echo * example: cli1620 c 7                                             *
  112. @echo * meaning: install Cirrus Logic 1024x768x16 driver on drive C,     *
  113. @echo *          the OS/2 drive                                          *
  114. @echo *                                                                  *
  115. @echo *------------------------------------------------------------------*
  116.  
  117. :home
  118.  
  119.