clear
space %1: 278 NoSpace
godir %1:%4 CantCreate
rem  Copy over the necessary files.
echo Copying Startup Files ...
copy %2:*.drv
copy %2:*.map
copy %2:fpdemo.*
copy %2:sierra.exe
copy %2:interp.err
copy %2:version
copy %2:read*.*
copy %2:install.*
copy %2:resource.map
copy %2:*.scr
copy %2:*.hep
copy %2:*.msg
copy %2:*.shm

echo %3 > resource.cfg

echo Copying Game files...
del resource.000

copy %2:resource.000 

copy %2:resource.aud
%2:auddcomp .\ > nul

:exit
clear
echo
echo ˙To play NOW:
echo ˙   Type SIERRA [ENTER].
echo
echo ˙To play LATER:
echo ˙   From the directory of %1:%4,
echo ˙   Type SIERRA and press [ENTER].
echo
pause
goto Exit2


:NoSpace
clear
echo
echo There is not enough space on %1: to install Freddy Pharkas Demo!
echo 278 kilobytes of disk space are necessary.
echo
pause


:Exit2
end


:CantCreate
alert Unable to create directory %1:%4
end
