echo off
echo           RTP/MSDOS Compiler Installation.
echo  --
echo  This batch job should have as parameters, the driver on which 
echo  you are going to install the RTP/MSDOS compiler.
echo  --
echo  Example:   A:
echo             INST C:
echo  --
echo  You are going to install the RTP/MSDOS compiler
echo       in the directory : %1\rtp
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\rtp
cd %1\
if exist %1\rtp goto direrr
echo  Creating the directory %1\rtp.
mkdir %1\rtp
:copy
echo --
echo  Do not bother of any error message from mkdir.
pause Ready for the copying of files to %1\rtp
echo  --
echo  Copying all the compiler files to the directory %1\rtp.
copy *.* %1\rtp
echo  --
echo All done, good luck.
echo  --
goto end
:direrr
echo  --
echo  You have a file in the root called RTP.
echo  --
goto end
:error
echo  --
echo  You forgot the root directory as a parameter.
echo  Try again
echo  --
:end
echo on
ho  --
:end
echo on
