echo off
cls
echo             PORTFOLIO ANALYST Demonstration Installation
echo.
echo.
if "%1" == "" goto NoPath
echo Ready to install on your hard disk. Press ^C to abort or
pause
echo.
echo Attempting to create \STOCK directory on your hard disk. If this
echo directory already exists, DOS will issue an error message, but you
echo can ignore the message.
echo .
md %1\STOCK
copy A:*.* %1\STOCK
rem if errorlevel 1 goto error
cls
echo.
echo   Please insert second diskette in drive A:
pause
copy A:*.* %1\STOCK
rem if errorlevel 1 goto error
:Finished
echo.
echo Installation of the demo(s) is complete! 
echo.
echo Type "PA" in directory \STOCK on installed drive
goto end
:error
echo                            **** E R R O R ****
echo.
echo     An error occurred during the installation. Most likely, your
echo     hard disk is full. Please correct the problem and run the INSTALL
echo     batch file again.
echo.
goto end
:NoPath
echo.
echo     Insert the demonstration diskette in drive A: and close the
echo     latch. Next, log onto drive A: by typing 'A:' followed by [Enter].
echo.
echo.
echo     Syntax:   INSTALL Drive:
echo.
echo     Where 'Drive:' is the drive letter of the hard disk
echo     drive where you wish to install this product.
echo.
echo        Example - To install on drive C:, you would
echo                  type the following:
echo.
echo                 INSTALL C:
:end
