echo Saving configuration...

space %1: 500 NoSpace 
godir %1:\sierra\kq5 CantCreate

echo %3>resource.cfg

echo cd kq5>..\kq5.bat
echo %2:>>..\kq5.bat
echo sierra %1:resource.cfg>>..\kq5.bat
echo %1:>>..\kq5.bat
echo cd..>>..\kq5.bat
godir %1:\sierra CantCreate

cls													 
echo In General, To play King's Quest V:
echo
echo type
echo       %1:
echo then
echo       CD \SIERRA
echo then
echo       KQ5
echo
pause
end

:CantCreate
alert Unable to create directory %1:\sierra\kq5
end

:NoSpace
clear
echo
echo There is not enough space on %1: to install 
echo 500 bytes of disk space are necessary.
end
