echo off
cls
break on
if %0==a:install goto adrive
if %0==A:install goto adrive
if %0==A:INSTALL goto adrive
if %0==b:install goto bdrive
if %0==B:install goto bdrive
if %0==B:INSTALL goto bdrive
if %0==install goto doinstall
if %0==INSTALL goto doinstall
echo Please switch to the drive you wish to install from before
echo starting install.  For example, to install from the B: drive,
echo Enter         B:
echo Then enter    INSTALL %1
goto End
:adrive
a:
goto doinstall
:bdrive
b:
goto doinstall
:doinstall
if "%1"=="" goto DriveNeeded
if exist %1\*.* goto makedir
:InvalidDrive
echo "%1" is an invalid drive name.  Please use the correct drive letter
echo followed by a colon:
:DriveNeeded
echo Please specify which drive to install Football Edition 1991 to,
echo for example:
:Example
echo.
echo         install c:
goto End
:MakeDir
echo 浜様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様�
echo �                                                               �
echo �                        GAMBLER'S MATE                         �
echo �                    Football Edition  1991                     �
echo �                      Copyright (c) 1991                       �
echo �                       By Mark E. Savey                        �
echo �                     Disk Install Utility                      �
echo �                                                               �
echo �                                                               �
echo �  This program will install all files into a directory called  �
echo �  "\GM\GM91" on drive %1.  If you do not wish to do this, then �
echo �  press Ctrl-C then "Y" now.                                   �
echo �                                                               �
echo 藩様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様�
echo.
pause
echo.
echo Checking for existence of %1\GM\GM91...
if exist %1\GM\GM91\*.* goto DirExists
if not exist %1\GM\*.* goto makeit
goto carryon
:makeit
md %1\GM > NUL
:carryon
echo.
echo Making appropriate Football Edition 1991 directories...
md %1\GM\GM91 > NUL
echo Everything is OK.  %1\GM\GM91 present!
goto CopyFiles
:DirExists
echo WARNING:  The directory %1\GM\GM91 already exists.  Press Ctrl-C then
echo           "Y" now if you don't want to overwrite the contents of that
echo           directory.
echo.
pause
echo.
:CopyFiles
echo.
echo Extracting and copying "Football Edition 1991" files to %1\GM\GM91...
copy/v readme. %1\GM\GM91>nul
copy/v *.90 %1\GM\GM91>nul
copy/v *.91 %1\GM\GM91>nul
copy/v *.bat %1\GM\GM91>nul
copy/v *.com %1\GM\GM91>nul
copy/v *.doc %1\GM\GM91>nul
copy/v *.exe %1\GM\GM91>nul
copy/v *.reg %1\GM\GM91>nul
copy/v *.s? %1\GM\GM91>nul
copy/v gm91man.zip %1\GM\GM91>nul
if not exist %1\GM\GM91\RECORD.S3 goto InstallError
if not exist %1\GM\GM91\gm91man.* goto InstallError
cls
echo 浜様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様融
echo �                                                                      �
echo �  Football Ed. 1991 has been successfully installed to your %1 drive. �
echo �                                                                      �
echo �      To run Football Edition 1991  type  GM91  and press ENTER.      �
echo �                                                                      �
echo 藩様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様様夕
%1
cd %1\GM\GM91
goto End
:InstallError
echo ERROR:  Installation of Football Edition 1991 into %1\GM\GM91 was unsuccessful.
echo         This could be caused because your %1 drive is full or unaccessible.
echo         Football Edition 1991 needs about 320K of free disk space, with the 
echo         (GM91MAN.ZIP) manual in ZIP format.  If the manual is not in compressed
echo         format then there needs to be 400k of free space available.
if not exist %1\GM\GM91\gm91man.* echo         GM91MAN.DOC nor GM91MAN.ZIP are present.
echo.
:End
echo.
