clear
space %1: 2500 NoSpaceBig
godir %1:%4 CantCreate
echo Installing to hard drive...
echo Copying Startup Files...
copy %2:*.drv
copy %2:sierra.com
copy %2:sciv.exe
copy %2:install.*
copy %2:resource.map
copy %2:readme.*
echo Copying Game files...
copy %2:resource.001      
copy %2:resource.002      
copy %2:resource.003      
copy %2:resource.004      

echo %3 > resource.cfg

echo @echo off > lsl3.bat
echo sierra >> lsl3.bat
echo cd.. >> lsl3.bat

echo @echo off > ..\lsl3.bat
echo cd %1:%4 >> ..\lsl3.bat
echo lsl3 >> ..\lsl3.bat

:exit
clear
echo
echo Installation complete!
echo To play, go to %1:%4 and enter:
echo lsl3
echo
pause
goto Exit2

:NoSpaceBig
clear
echo You don't have enough space (2.5 Meg) for the
echo complete install. Please free up some space
echo and try again.
pause
goto Exit2

:CantCreate
alert Unable to create directory %1:%4
goto Exit2

:Exit2
%2:
cd %2:\
end

