home *** CD-ROM | disk | FTP | other *** search
/ CD-ROM Today - The Disc! 17 / cdrt17.iso / pc / dosend / bat / getdrive.bat next >
DOS Batch File  |  1995-09-09  |  2KB  |  136 lines

  1. @echo off
  2. cls   
  3. echo  *******************************************************
  4. echo     PLEASE  ENTER  YOUR  HARD  DRIVE  LETTER
  5. ECHO  *******************************************************
  6. echo -
  7. echo -
  8.  
  9.  
  10. @echo  Press the letter corresponding to the hard drive
  11. echo          where you have installed the demo. 
  12.  echo -
  13. @echo        (C through Y are valid drive choices)
  14. choice /c:defghijklmnopqrstuvwxyc /n
  15. if errorlevel 23 goto dos23
  16. if errorlevel 22 goto dos22
  17. if errorlevel 21 goto dos21
  18. if errorlevel 20 goto dos20
  19. if errorlevel 19 goto dos19
  20. if errorlevel 18 goto dos18
  21. if errorlevel 17 goto dos17
  22. if errorlevel 16 goto dos16
  23. if errorlevel 15 goto dos15
  24. if errorlevel 14 goto dos14
  25. if errorlevel 13 goto dos13
  26. if errorlevel 12 goto dos12
  27. if errorlevel 11 goto dos11
  28. if errorlevel 10 goto dos10
  29. if errorlevel 9 goto dos9
  30. if errorlevel 8 goto dos8
  31. if errorlevel 7 goto dos7
  32. if errorlevel 6 goto dos6
  33. if errorlevel 5 goto dos5
  34. if errorlevel 4 goto dos4
  35. if errorlevel 3 goto dos3
  36. if errorlevel 2 goto dos2
  37. if errorlevel 1 goto dos1
  38.  
  39. :dos23
  40. SET %x=c:
  41. goto cdrt
  42.  
  43. :dos22
  44. SET %x=y:
  45. goto cdrt
  46.  
  47. :dos21
  48. SET %x=x:
  49. goto cdrt
  50.  
  51. :dos20
  52. SET %x=w:
  53. goto cdrt
  54.  
  55. :dos19
  56. SET %x=v:
  57. goto cdrt
  58.  
  59. :dos18
  60. SET %x=u:
  61. goto cdrt
  62.  
  63. :dos17
  64. SET %x=t:
  65. goto cdrt
  66.  
  67. :dos16
  68. SET %x=s:
  69. goto cdrt
  70.  
  71. :dos15
  72. SET %x=r:
  73. goto cdrt
  74.  
  75. :dos14
  76. SET %x=q:
  77. goto cdrt
  78.  
  79. :dos13
  80. SET %x=p:
  81. goto cdrt
  82.  
  83. :dos12
  84. SET %x=o:
  85. goto cdrt
  86.  
  87. :dos11
  88. SET %x=n:
  89. goto cdrt
  90.  
  91. :dos10
  92. SET %x=m:
  93. goto cdrt
  94.  
  95. :dos9
  96. SET %x=l:
  97. goto cdrt
  98.  
  99. :dos8
  100. SET %x=k:
  101. goto cdrt
  102.  
  103. :dos7
  104. SET %x=j:
  105. goto cdrt
  106.  
  107. :dos6
  108. SET %x=i:
  109. goto cdrt
  110.  
  111. :dos5
  112. SET %x=h:
  113. goto cdrt
  114.  
  115. :dos4
  116. SET %x=g:
  117. goto cdrt
  118.  
  119. :dos3
  120. SET %x=f:
  121. goto cdrt
  122.  
  123. :dos2
  124. SET %x=e:
  125. goto cdrt
  126.  
  127. :dos1
  128. SET %x=d:
  129. goto cdrt
  130.  
  131. :cdrt
  132. %x%
  133.  
  134.  
  135. :end
  136.