:start
cd ..
godir %1:%4 CantCreate
space %1: 4500 NoMinSpace
rem *** copy files to install destination directory ***
clear
godir %1:%4\data CantCreate
rem copy %2:install\german.cfg .\language.cfg
copy %2:data\*.* .
godir %1:%4\sos CantCreate
copy %2:sos\*.* .
godir %1:%4\sset CantCreate
copy %2:sset\*.* .
godir %1:%4\vol CantCreate
copy %2:vol\simsound.vol .
copy %2:vol\simvoice.vol .
godir %1:%4\install CantCreate
copy %2:install\*.* .
copy %2:install\hdstuff\*.* .
godir %1:%4 CantCreate
copy %2:install\resource.cfg .
copy %2:stuff\*.* .
clear
rem *** make executable batch file ***
echo @echo off>esdemo.bat
echo mode co80>>esdemo.bat
echo set ALT_DRIVE=%1:>>esdemo.bat
echo set PREFER_ALT=1>>esdemo.bat
echo %2:>>esdemo.bat
echo cd \esdemo>>esdemo.bat
echo escd>>esdemo.bat
echo %1:>>esdemo.bat

clear
echo
echo  To play the EarthSiege demo NOW:
echo    Type ESDEMO [ENTER].
echo
echo  To play LATER:
echo     From the directory of %1:%4,
echo     Type ESDEMO and press [ENTER].
echo     Make sure the CD is in the same
echo     drive that the game was installed from.
echo
pause

rem *** add flic path to resource file ***
echo @echo off >data\addr.bat
echo install\addres FlicPlayer pathFlic flic\ %2 resource.cfg >>data\addr.bat

:done
end





:NoMinSpace
clear
echo
echo There is not enough space on %1: to install EarthSiege!
echo 4.5 megabytes of disk space are necessary.
echo
pause
goto end

:NoMedSpace
clear
echo
echo There is not enough space on %1: for the medium sized
echo installation of EarthSiege. 10.5 Megabytes are necessary.
pause
goto start

:NoMaxSpace
clear
echo
echo There is not enough space on %1: for the maximum sized
echo installation of EarthSiege. 32 Megabytes are necessary.
pause
goto start


:CantCreate
alert Unable to create directory
end



