echo off
ECHO -------------------------------------------
ECHO INSTALL BATCH FILE FOR TAS
ECHO SYNTAX : 
ECHO     INSTALL drive [directory or \TAS]
ECHO    meaning 
ECHO     drive is the drive on which to install
ECHO             TAS (e.g. C:)
ECHO     directory is the directory in which
ECHO             to install TAS on the drive
ECHO             If no directory is specified,
ECHO             the default is \TAS      
ECHO -------------------------------------------
if %1~==~ goto noparm
if %2~==~ goto oneparm
echo ------------------------------------------- 
echo This procedure will install TAS on your 
echo '%1' disk into the directory \%2
echo ------------------------------------------- 
pause
md %1\%2
:dirdone
copy tas.exe %1\%2
copy tas.hlp %1\%2
copy tas.txt %1\%2
copy *.tas %1\%2
copy *.pts %1\TAS
copy *.sel %1\TAS
copy register.doc %1\%2
if exist tas.cnf copy tas.cnf %1\%2
%1
cd \%2
:doinst
tas
goto exit99
:oneparm
echo ------------------------------------------- 
echo This procedure will install TAS on your 
echo '%1' disk into the directory \TAS
echo ------------------------------------------- 
pause
md %1\TAS
:dirdone
copy tas.exe %1\TAS
copy tas.hlp %1\TAS
copy tas.txt %1\TAS
copy *.tas %1\TAS
copy *.pts %1\TAS
copy *.sel %1\TAS
copy register.doc %1\TAS
if exist tas.cnf copy tas.cnf %1\TAS
%1
cd \TAS
goto doinst
:noparm
echo *******************************************
echo You must specify the DRIVE LETTER (C,D,E)
echo on which TAS is to be installed
echo *******************************************
goto exit99
:exit99
exit
