home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 33 VDrivers / 33-VDrivers.zip / tros21dr.zip / INSTALL.BAT next >
DOS Batch File  |  1994-01-05  |  4KB  |  121 lines

  1. echo off
  2. cls
  3. if exist svga.exe goto chk1
  4. echo Please go to the disk driver in which Trident display diskette is located.
  5. goto EXIT
  6.  
  7. :chk1
  8. if "%1"=="" goto msg1
  9. SET SRCPATH=A:
  10. if NOT "%2"=="" SET SRCPATH=%2
  11. SET DSTPATH=%1\TROS2DRV
  12. if NOT "%3"=="" SET DSTPATH=%3
  13. echo.
  14. echo.
  15. echo.
  16. echo                The  Trident  display  driver  will  be  
  17. echo                copied  to %DSTPATH%.
  18. echo                During  running  "DSPINSTL"  to  select
  19. echo                display  resolution,  you  must  change
  20. echo                "source  directory"  to  %DSTPATH%.
  21. echo.                                                         
  22. echo                This installation needs 1.5MB disk space.
  23. echo.
  24. echo.                                                         
  25. echo                The OS/2 boot driver is %1
  26. echo                The OS/2 display driver diskette is %SRCPATH%     
  27. echo.                                                        
  28. echo.                                                         
  29. echo                If not correct, press Ctrl C (^C) to quit.
  30. echo.
  31. echo.
  32. pause
  33.  
  34. if exist %1\OS2\OS2.INI goto ins
  35. echo.
  36. echo Driver name error or not OS/2 boot driver
  37. goto msg1
  38.  
  39. :ins
  40. md %DSTPATH%
  41. echo on
  42. copy svga.exe %1\OS2
  43. copy vsvga.sys %1\OS2\MDOS
  44. copy pstrid.dsc %1\OS2\INSTALL
  45. copy vga %DSTPATH% 
  46. copy vga60016.dr_ %DSTPATH% 
  47. copy sw60016.dr_ %DSTPATH% 
  48. copy vga76816.dr_ %DSTPATH%
  49. copy sw76816.dr_ %DSTPATH%
  50. copy sv60016.dl_ %DSTPATH% 
  51. copy sv76816.dl_ %DSTPATH%
  52. copy readme.doc %DSTPATH%
  53. copy trident.bat %DSTPATH%
  54.  
  55. if exist %1\OS2\MDOS\WINOS2\WIN.COM goto os2_org
  56. copy tr480a.osw %DSTPATH%\tr480a.dsp
  57. copy tr480ac.osw %DSTPATH\%tr480ac.dsp
  58. copy tr480b.osw %DSTPATH%\tr480b.dsp
  59. copy tr480bc.osw %DSTPATH%\tr480bc.dsp
  60. copy tr600a.osw %DSTPATH%\tr600a.dsp
  61. copy tr600ac.osw %DSTPATH%\tr600ac.dsp
  62. copy tr600b.osw %DSTPATH%\tr600b.dsp
  63. copy tr600bc.osw %DSTPATH%\tr600bc.dsp
  64. copy tr768a.osw %DSTPATH%\tr768a.dsp
  65. copy tr768ac.osw %DSTPATH%\tr768ac.dsp
  66. copy tr768b.osw %DSTPATH%\tr768b.dsp
  67. copy tr768bc.osw %DSTPATH%\tr768bc.dsp
  68. copy psvga32.osw %DSTPATH%\psvga32.dsp
  69. copy pssvga32.osw %DSTPATH%\pssvga32.dsp
  70. goto ins2
  71.  
  72. :os2_org
  73. copy tr480a.os2 %DSTPATH%\tr480a.dsp
  74. copy tr480ac.os2 %DSTPATH%\tr480ac.dsp
  75. copy tr480b.os2 %DSTPATH%\tr480b.dsp
  76. copy tr480bc.os2 %DSTPATH%\tr480bc.dsp
  77. copy tr600a.os2 %DSTPATH%\tr600a.dsp
  78. copy tr600ac.os2 %DSTPATH%\tr600ac.dsp
  79. copy tr600b.os2 %DSTPATH%\tr600b.dsp
  80. copy tr600bc.os2 %DSTPATH%\tr600bc.dsp
  81. copy tr768a.os2 %DSTPATH%\tr768a.dsp
  82. copy tr768ac.os2 %DSTPATH%\tr768ac.dsp
  83. copy tr768b.os2 %DSTPATH%\tr768b.dsp
  84. copy tr768bc.os2 %DSTPATH%\tr768bc.dsp
  85. copy psvga32.os2 %DSTPATH%\psvga32.dsp
  86. copy pssvga32.os2 %DSTPATH%\pssvga32.dsp
  87.  
  88. :ins2
  89. @echo off
  90.  
  91.  
  92. %DSTPATH%\trident %1 %SRCPATH% %DSTPATH%
  93.  
  94. :msg1
  95. echo.
  96. echo This installation needs to copy files from original OS\2 display diskette.
  97. echo Be sure the original OS/2 display diskette is ready.
  98. echo.
  99. echo.
  100. echo Usage:   install [boot_drv:] [dsp_drv:\dsp_path] [dst_drv:\dst_path]
  101. echo.
  102. echo Where:   boot_drv -- OS2 boot driver name, must be given.
  103. echo          dsp_drv,dsp_path -- Driver and path where the original OS/2
  104. echo                              display diskette is  located.  Optional 
  105. echo                              parametr, the default is A:. If dst_drv
  106. echo                              is A or B, don't give dst_path. If you 
  107. echo                              use CD ROM, just give the dsp_drv:.
  108. echo          dst_drv,dst_path -- The target disk driver and path where
  109. echo                              Trident display driver is copied to.  
  110. echo                              Optional paramrter, the default is 
  111. echo                              OS2_ boot_driver:\TROS2DRV. If this 
  112. echo                              parameter is given, dsp_drv and dsp_path 
  113. echo                              must be specified.
  114. echo.
  115. echo Example: install C:
  116. echo Example: install D: D:\DISP
  117. echo Example: install C: A: C:\MYDRV
  118. echo Example: install D: G: D:\MYDRV   (CD is on driver G)
  119. :EXIT
  120. echo.
  121.