home *** CD-ROM | disk | FTP | other *** search
/ PC Zone 1994 December / CD-ROM.ISO / lba_prev / install.bat < prev    next >
DOS Batch File  |  1994-01-15  |  3KB  |  145 lines

  1. @echo off
  2. if "%1"=="" goto error
  3. if "%2"=="" goto error
  4.  
  5.  
  6. if "%1"=="D:" goto okcd
  7. if "%1"=="d:" goto okcd
  8. if "%1"=="E:" goto okcd
  9. if "%1"=="e:" goto okcd
  10. if "%1"=="F:" goto okcd
  11. if "%1"=="f:" goto okcd
  12. if "%1"=="G:" goto okcd
  13. if "%1"=="g:" goto okcd
  14. if "%1"=="H:" goto okcd
  15. if "%1"=="h:" goto okcd
  16. if "%1"=="I:" goto okcd
  17. if "%1"=="i:" goto okcd
  18. if "%1"=="J:" goto okcd
  19. if "%1"=="j:" goto okcd
  20. if "%1"=="K:" goto okcd
  21. if "%1"=="k:" goto okcd
  22. if "%1"=="L:" goto okcd
  23. if "%1"=="l:" goto okcd
  24. if "%1"=="M:" goto okcd
  25. if "%1"=="m:" goto okcd
  26. if "%1"=="N:" goto okcd
  27. if "%1"=="n:" goto okcd
  28. if "%1"=="O:" goto okcd
  29. if "%1"=="o:" goto okcd
  30. if "%1"=="P:" goto okcd
  31. if "%1"=="p:" goto okcd
  32. if "%1"=="Q:" goto okcd
  33. if "%1"=="q:" goto okcd
  34. if "%1"=="R:" goto okcd
  35. if "%1"=="r:" goto okcd
  36. if "%1"=="S:" goto okcd
  37. if "%1"=="s:" goto okcd
  38. if "%1"=="T:" goto okcd
  39. if "%1"=="t:" goto okcd
  40. if "%1"=="U:" goto okcd
  41. if "%1"=="u:" goto okcd
  42. if "%1"=="V:" goto okcd
  43. if "%1"=="v:" goto okcd
  44. if "%1"=="W:" goto okcd
  45. if "%1"=="w:" goto okcd
  46. if "%1"=="X:" goto okcd
  47. if "%1"=="x:" goto okcd
  48. if "%1"=="Y:" goto okcd
  49. if "%1"=="y:" goto okcd
  50. if "%1"=="Z:" goto okcd
  51. if "%1"=="z:" goto okcd
  52.  
  53. echo Error: Your CD-ROM Drive letter must be between D: and Z:
  54. goto error
  55.  
  56. :okcd
  57.  
  58. if "%2"=="C:" goto okhd
  59. if "%2"=="c:" goto okhd
  60. if "%2"=="D:" goto okhd
  61. if "%2"=="d:" goto okhd
  62. if "%2"=="E:" goto okhd
  63. if "%2"=="e:" goto okhd
  64. if "%2"=="F:" goto okhd
  65. if "%2"=="f:" goto okhd
  66. if "%2"=="G:" goto okhd
  67. if "%2"=="g:" goto okhd
  68. if "%2"=="H:" goto okhd
  69. if "%2"=="h:" goto okhd
  70. if "%2"=="I:" goto okhd
  71. if "%2"=="i:" goto okhd
  72. if "%2"=="J:" goto okhd
  73. if "%2"=="j:" goto okhd
  74. if "%2"=="K:" goto okhd
  75. if "%2"=="k:" goto okhd
  76. if "%2"=="L:" goto okhd
  77. if "%2"=="l:" goto okhd
  78. if "%2"=="M:" goto okhd
  79. if "%2"=="m:" goto okhd
  80. if "%2"=="N:" goto okhd
  81. if "%2"=="n:" goto okhd
  82. if "%2"=="O:" goto okhd
  83. if "%2"=="o:" goto okhd
  84. if "%2"=="P:" goto okhd
  85. if "%2"=="p:" goto okhd
  86. if "%2"=="Q:" goto okhd
  87. if "%2"=="q:" goto okhd
  88. if "%2"=="R:" goto okhd
  89. if "%2"=="r:" goto okhd
  90. if "%2"=="S:" goto okhd
  91. if "%2"=="s:" goto okhd
  92. if "%2"=="T:" goto okhd
  93. if "%2"=="t:" goto okhd
  94. if "%2"=="U:" goto okhd
  95. if "%2"=="u:" goto okhd
  96. if "%2"=="V:" goto okhd
  97. if "%2"=="v:" goto okhd
  98. if "%2"=="W:" goto okhd
  99. if "%2"=="w:" goto okhd
  100. if "%2"=="X:" goto okhd
  101. if "%2"=="x:" goto okhd
  102. if "%2"=="Y:" goto okhd
  103. if "%2"=="y:" goto okhd
  104. if "%2"=="Z:" goto okhd
  105. if "%2"=="z:" goto okhd
  106.  
  107. echo Error: Your Hard Disk Drive letter must be between C: and Z:
  108. goto error
  109.  
  110. :okhd
  111.  
  112. cls
  113. echo Please wait. Copying files from %1\LBA_PREV to %2\LBA...
  114. echo.
  115. %2
  116. cd \
  117. md lba
  118. cd lba
  119. %1
  120. cd \lba_prev
  121. copy . %2
  122. %2
  123. cls
  124. echo Running configuration program...
  125. echo.
  126. setup
  127. cls
  128. echo LBA Preview installed correctly.
  129. echo.
  130. echo To change your configuration type SETUP in the LBA directory.
  131. echo.
  132. echo Type LBA at command prompt to launch preview.
  133. echo.
  134. goto end
  135.  
  136. :error
  137. echo.
  138. echo Usage :
  139. echo INSTALL Source-Drive Destination-Drive
  140. echo for example : INSTALL D: C: 
  141. echo Will install the LBA Preview from CD-ROM D: to Hard Disk C:
  142. echo Your Hard Disk must have at least 12 MBytes free (12,000,000 Bytes free). 
  143. echo.
  144. :end
  145.