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

  1. @if "%1"=="" goto usage
  2. @if "%2"=="" goto usage
  3. @echo - Cirrus Logic 256 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\ibmdev32._cl       goto sav5
  31. @if exist %1:\os2\dll\ibmdev32.dll copy %1:\os2\dll\ibmdev32.dll %1:\os2\dll\ibmdev32._cl >nul
  32.  
  33. :sav5
  34. @if exist %1:\os2\dll\ibmvga32._cl       goto sav6
  35. @if exist %1:\os2\dll\ibmvga32.dll copy %1:\os2\dll\ibmvga32.dll %1:\os2\dll\ibmvga32._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.  
  44. :dsk2
  45. @echo - please insert display driver diskette two
  46. @pause
  47. @if not exist os2_2 goto dsk2
  48.  
  49. @if %2==6 goto 600
  50. @if %2==7 goto 768
  51. @copy sv480256.dll  %1:\os2\dll\ibmdev32.dll >nul
  52. @goto inst
  53.  
  54. :600
  55. @copy sv600256.dll  %1:\os2\dll\ibmdev32.dll >nul
  56. @goto inst
  57.  
  58. :768
  59. @copy sv768256.dll  %1:\os2\dll\ibmdev32.dll >nul
  60.  
  61. :inst
  62. @echo - please insert display driver diskette one
  63. @pause
  64. @if not exist os2_1 goto inst
  65.  
  66. @if exist %1:\os2\screen01.sys copy screen01.sys %1:\os2 >nul
  67. @if exist %1:\os2\screen02.sys copy screen02.sys %1:\os2 >nul
  68. @copy svga.exe          %1:\os2 >nul
  69. @copy bvhsvga.dll       %1:\os2\dll  >nul
  70. @copy ibmvga32.dll      %1:\os2\dll  >nul
  71. @copy vsvga.sys         %1:\os2\mdos >nul
  72.  
  73. @echo -
  74. @echo - Before rebooting to OS/2 for the new drivers to take effect...
  75. @echo -
  76. @echo - 1. please edit OS/2's config.sys file with the following settings
  77. @echo -
  78. @echo -    set video_devices=vio_SVGA
  79. @echo -    set vio_SVGA=device(bvhvga,BVHSVGA)
  80. @echo -    device=c:\os2\mdos\VSVGA.SYS
  81. @echo -
  82. @echo - 2. if you booted from a DOS disk to install the drivers, type
  83. @echo -    \OS2\SVGA ON DOS to write svgadata.dos in the current directory,
  84. @echo -    then copy svgadata.dos to \os2\svgadata.pmi
  85. @echo -
  86. @echo - 3. if you ESCaped out of the OS/2 2.0 installation diskette one to
  87. @echo -    install the drivers, you'll need to reboot to OS/2 first, then
  88. @echo -    bring up a DOS full screen session, type \OS2\SVGA ON to create
  89. @echo -    the svgadata.pmi file, type exit at the command prompt, shutdown
  90. @echo -    the system and reboot to OS/2 again
  91. @echo -
  92. @goto home
  93.  
  94. :usage
  95. @echo *------------------------------------------------------------------*
  96. @echo * Cirrus Logic SVGA installation for OS/2 2.0...                   *
  97. @echo *==================================================================*
  98. @echo *                                                                  *
  99. @echo * Please specify the drive letter for the files to be copied to... *
  100. @echo * and the vertical display resolution of choice...                 *
  101. @echo *                                                                  *
  102. @echo *    640 x 480 x 256 ---- type 4 (default)                         *
  103. @echo *    800 x 600 x 256 ---- type 6                                   *
  104. @echo *   1024 x 768 x 256 ---- type 7                                   *
  105. @echo *                                                                  *
  106. @echo * example: cli25620 c 7                                            *
  107. @echo * meaning: install Cirrus Logic 1024x768x256 driver on drive C,    *
  108. @echo *          the OS/2 drive                                          *
  109. @echo *                                                                  *
  110. @echo *------------------------------------------------------------------*
  111.  
  112. :home
  113.  
  114.