echo off
echo.
echo.
rem	----	Make sure that we've got a parameter and that we're on the 
rem	----	proper drive. 
set drive=%1
if "%1" == "" set drive=c:
if "%1" == "C" set drive=c:
if not exist installh.bat goto Usage 
rem	----	Wait for a keystroke before starting. 
echo off 
echo Hard disk installation for 
echo Manhunter San Fransisco
pause 

rem	----	Create or change to the appropriate directory on the hard disk. 
makepath %drive%\sierra 
if errorlevel 1 goto CantMake 
makepath %drive%mh2
if errorlevel 1 goto CantMake 
rem	----	Copy the installation file to the hard disk and execute it. 
copy _install.bat %drive% 
%drive%_install %drive% 
goto Exit 

rem	----	Tell user that we couldn't create the proper directory 
rem	----	and bail out. 
:CantMake 
echo off 
echo ÿ 
echo ÿ 
echo Unable to create the directory 
echo 	%drive%\sierra\mh2
echo Installation cancelled. 
goto Exit 

rem	----	No parameter or not on the proper drive -- tell user how 
rem	----	to use installation program. 
:Usage 
echo off 
echo To install Manhunter San Fransisco on 
echo hard disk C:, make the drive 
echo containing the Manhunter San Fransisco
echo disk your current drive, then type 
echo		installh  C: 
echo	If your hard disk has a drive letter 
echo other than C:, use its letter instead. 

:Exit

