home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD-ROM Today - The Disc! 17
/
cdrt17.iso
/
pc
/
dosend
/
bat
/
instmech.bat
< prev
next >
Wrap
DOS Batch File
|
1995-09-11
|
3KB
|
180 lines
@echo off
set y=a
cls
echo.
echo.
echo CD ROM DRIVE CD ROM DRIVE CD ROM DRIVE CD ROM DRIVE
ECHO.
echo *******************************************************
echo PLEASE ENTER YOUR CD-ROM DRIVE LETTER
ECHO *******************************************************
echo.
echo.
@echo Press the letter corresponding to CD-ROM drive
echo.
echo.
@echo (C through Y are valid drive choices)
:loop
choice /c:defghijklmnopqrstuvwxyc /n
if errorlevel 23 goto dos23
if errorlevel 22 goto dos22
if errorlevel 21 goto dos21
if errorlevel 20 goto dos20
if errorlevel 19 goto dos19
if errorlevel 18 goto dos18
if errorlevel 17 goto dos17
if errorlevel 16 goto dos16
if errorlevel 15 goto dos15
if errorlevel 14 goto dos14
if errorlevel 13 goto dos13
if errorlevel 12 goto dos12
if errorlevel 11 goto dos11
if errorlevel 10 goto dos10
if errorlevel 9 goto dos9
if errorlevel 8 goto dos8
if errorlevel 7 goto dos7
if errorlevel 6 goto dos6
if errorlevel 5 goto dos5
if errorlevel 4 goto dos4
if errorlevel 3 goto dos3
if errorlevel 2 goto dos2
if errorlevel 1 goto dos1
:dos23
SET %x=c:
goto cdrt
:dos22
SET %x=y:
goto cdrt
:dos21
SET %x=x:
goto cdrt
:dos20
SET %x=w:
goto cdrt
:dos19
SET %x=v:
goto cdrt
:dos18
SET %x=u:
goto cdrt
:dos17
SET %x=t:
goto cdrt
:dos16
SET %x=s:
goto cdrt
:dos15
SET %x=r:
goto cdrt
:dos14
SET %x=q:
goto cdrt
:dos13
SET %x=p:
goto cdrt
:dos12
SET %x=o:
goto cdrt
:dos11
SET %x=n:
goto cdrt
:dos10
SET %x=m:
goto cdrt
:dos9
SET %x=l:
goto cdrt
:dos8
SET %x=k:
goto cdrt
:dos7
SET %x=j:
goto cdrt
:dos6
SET %x=i:
goto cdrt
:dos5
SET %x=h:
goto cdrt
:dos4
SET %x=g:
goto cdrt
:dos3
SET %x=f:
goto cdrt
:dos2
SET %x=e:
goto cdrt
:dos1
SET %x=d:
goto cdrt
:cdrt
rem echo y= %y%
rem pause
if NOT %y%==a goto josh
set z=%x%
rem echo z= %z%
set y=b
cls
echo.
echo HARD DRIVE HARD DRIVE HARD DRIVE HARD DRIVE
ECHO.
echo *******************************************************
echo PLEASE ENTER YOUR HARD DRIVE LETTER
ECHO *******************************************************
echo.
echo.
@echo Press the letter corresponding to HARD DRIVE
@echo where you wish to place the demo
echo.
echo.
@echo (C through Y are valid drive choices)
goto loop
:josh
rem echo x=%x%
rem echo z= %z%
cd\
cd mw2
CALL install %z% %x%
:end