home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Best of Select: Games 4
/
CD_1.iso
/
games
/
yaht-z
/
install.bat
< prev
next >
Wrap
DOS Batch File
|
1992-04-11
|
1KB
|
45 lines
echo off
cls
if %1!==! goto PROMPT
for %%f in (A:,a:,B:,b:,C:,c:,D:,d:,E:,e:,F:,f:,G:,g:,H:,h:,I:,i:) do if %1.==%%f. goto BEGIN
for %%f in (J:,j:,K:,k:,L:,l:,M:,m:,N:,n:,O:,o:,P:,p:,Q:,q:,R:,r:) do if %1.==%%f. goto BEGIN
for %%f in (S:,s:,T:,t:,U:,u:,V:,v:,W:,w:,X:,x:,Y:,y:,Z:,z:) do if %1.==%%f. goto BEGIN
goto INVALID
:BEGIN
if not exist README.BAT goto INSTAL
if exist EPYAHTZ1.EXE goto PROCEED
:INSTAL
echo Go to the drive where Easy-Play Yaht-Z installation files
echo are and insert a diskette into the proper drive if needed.
pause
goto BEGIN
:PROCEED
epyahtz1 /e%1 /x
if errorlevel 1 goto CANCEL
if not exist %1\EP-YAHTZ\════════.═══ goto CANCEL
%1
cd\ep-yahtz
if errorlevel 1 goto CANCEL
YAHTZ
cd\
goto EXIT
:INVALID
echo Invalid drive specified. Install cancelled.
:PROMPT
echo
echo At the "A:>" or "B:>" prompt enter "INSTALL <drive:>", where "<drive:>"
echo is the letter of the hard disk on which Easy-Play Yaht-Z be placed.
echo For example, if the Easy-Play Yaht-Z disk is in drive "A:" and the
echo hard disk for Easy-Play Yaht-Z is drive "C:" you would type at the
echo "A:>" prompt:
echo
echo INSTALL C:
echo
goto EXIT
:CANCEL
echo
echo
echo Install cancelled.
echo
:EXIT