@echo off
echo           RTP3502/MSDOS Compiler Installation.
echo  --
echo  This batch job should have as parameters:
echo    1) The root directory,in which the
echo    2) RTP35 directory will be created as the
echo       directory holding the RTP3502/MSDOS compiler files.
echo  --
echo  Example:   A:
echo             INST C: RTP35
echo  --
echo  You are going to install the RTP3502/MSDOS compiler
echo       in the directory : %1\%2.
echo  --
echo  If that is okay, then strike any key.
echo  Otherwise you should leave this job by pressing Ctrl-c,
echo       and exit the batch job by typing
echo       'y' to the batch termination question.
echo  --
pause
if "%1"=="" goto error
echo  --
echo  Testing for the existency of the directory %1\%2.
cd %1\
if exist %1\%2 goto direrr
echo  Creating the directory %1\%2.
mkdir %1\%2
:copy
echo --
echo  Do not bother of any error message from mkdir.
pause Ready for the copying of files to %1\%2
echo  --
echo  Copying all the compiler files to the directory %1\%2.
copy *.* %1\%2
echo  --
echo All done, good luck.
echo  --
goto end
:direrr
echo  --
echo  You have a file in the root called RTP35.
echo  --
goto end
:error
echo  --
echo  You forgot the root directory as a parameter.
echo  Try again
echo  --
:end
echo on
