home *** CD-ROM | disk | FTP | other *** search
/ The Best of Select: Games 4 / CD_1.iso / games / yaht-z / install.bat < prev    next >
DOS Batch File  |  1992-04-11  |  1KB  |  45 lines

  1. echo off
  2. cls
  3. if %1!==! goto PROMPT
  4. 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
  5. 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
  6. 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
  7. goto INVALID
  8. :BEGIN
  9. if not exist README.BAT goto INSTAL
  10. if exist EPYAHTZ1.EXE goto PROCEED
  11. :INSTAL
  12. echo Go to the drive where Easy-Play Yaht-Z installation files
  13. echo are and insert a diskette into the proper drive if needed.
  14. pause
  15. goto BEGIN
  16. :PROCEED
  17. epyahtz1 /e%1 /x
  18. if errorlevel 1 goto CANCEL
  19. if not exist %1\EP-YAHTZ\════════.═══ goto CANCEL
  20. %1
  21. cd\ep-yahtz
  22. if errorlevel 1 goto CANCEL
  23. YAHTZ
  24. cd\
  25. goto EXIT
  26. :INVALID
  27. echo Invalid drive specified.  Install cancelled.
  28. :PROMPT
  29. echo  
  30. echo At the "A:>" or "B:>" prompt enter "INSTALL <drive:>", where "<drive:>"
  31. echo is the letter of the hard disk on which Easy-Play Yaht-Z be placed.
  32. echo For example, if the Easy-Play Yaht-Z disk is in drive "A:" and the
  33. echo hard disk for Easy-Play Yaht-Z is drive "C:" you would type at the
  34. echo "A:>" prompt:
  35. echo  
  36. echo           INSTALL C:
  37. echo  
  38. goto EXIT
  39. :CANCEL
  40. echo  
  41. echo  
  42. echo Install cancelled.
  43. echo  
  44. :EXIT
  45.