clear
:Choose
godir %1:%4 cantcreate

cls

:faster
space %1: 14000 nospace1
echo
echo    Copying game files to
echo %1:%4, 
echo

REM Copy files without echoing the filenames being copied
copy %2:*.*    %1:            /s

echo @echo off        >..\kq7demo.bat
echo cd %4           >>..\kq7demo.bat
echo sierra         >>..\kq7demo.bat
echo cd ..           >>..\kq7demo.bat

echo @echo off        >kq7demo.bat
echo sierra         >>kq7demo.bat

echo %3				>resource.cfg
echo resAUD    = %1:%4		>>resource.cfg
echo resSFX    = %1:%4		>>resource.cfg
echo patchDir  = %1:%4		>>resource.cfg

goto done

:done
REM cd ..>NULL
cls
echo
echo    To play the Kings Quest 7 Demo, change to the
echo    current directory or to 
echo 
echo             %1:%4, and type:
echo
echo                                kq7demo [ENTER]
echo
echo
echo
echo
echo
echo
echo
pause
goto quit

:cantcreate
alert   Unable to create the directory %1:%4 !
pause
goto quit

:nospace1
cls
echo
echo    Hey! %1: doesn't have 13 megabytes free!
echo Go erase your word processor or something and let's
echo try this again later. 
echo 
echo 
echo
echo
echo
echo
echo
echo
pause
goto quit

:quit
cd %2:..
end
