Metropoli BBS
VIEWER: install.bat MODE: TEXT (CP437)
: install.bat
:
: Complete installation of all drivers with the *.pn3 extension into
:Harvard Graphics 3.0.
:
: The directory 'driver' will contain all of the existing drivers for
:Harvard Graphics 3.0. It is normally found under \HG3 (the Harvard Graphics
:Source files)
:
: Usage:
:        install <full path to Harvard Graphics 3.0>
:
echo off
cls
echo ════════════════════════════════════════════════════════════════════════════════
echo		       Driver Installation program for Harvard Graphics
echo 
echo ════════════════════════════════════════════════════════════════════════════════
echo 

: Check for non empty parameters

if %1 .==. goto ERROR1

echo   Harvard Graphics path is : %1
echo 
pause

: Checking for the right directory

if not exist %1\driver\*.pn3 goto ERROR2

: Checking for files on specified driver disk

if not exist *.pn3 goto ERROR3

:Copying drivers to Harvard Graphics

echo 
echo   Writing drivers to Harvard Graphics ...
echo 
copy *.pn3 %1\driver /b
echo 
echo   Installation complete.
echo 
echo   Implementation of the new drivers can be carried out from the 'Setup' option
echo   of the Main Menu in Harvard Graphics.
echo 
goto END

:ERROR1
echo 
echo ════════════════════════════════════════════════════════════════════════════════
echo   You must supply the pathname of Harvard Graphics in the form of:
echo 
echo                 install [pathname to Harvard Graphics]
echo 
echo   ie.                         install c:\HG3
echo 
echo   You will have to re-run the install program with the correct parameters.
echo 
echo ════════════════════════════════════════════════════════════════════════════════
echo 
goto END

:ERROR2
echo Cannot find the Harvard Graphics Driver directory under %1
goto END

:ERROR3
echo Disk error - files not found

:END
[ RETURN TO DIRECTORY ]