echo off
cls
if %1a == a: goto WHATDRIVE
if %1b == b: goto WHATDRIVE
if %1 == c: goto START
if %1 == C: goto START
if %1 == d: goto START
if %1 == D: goto START
if %1 == e: goto START
if %1 == E: goto START
if %1 == f: goto START
if %1 == F: goto START 
goto NOTDRIVE
:START
echo 
echo   ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
echo   º                                                                        º
echo   º   Pencil and Paper Activity Maker Hard Disk Installation and Update.   º
echo   º                                                                        º
echo   º   *  This will create a directory called %1\PAPAMAKE on your hard      º
echo   º      disk, and will install the PAPAM (Pencil and Paper Activity       º
echo   º      Maker) files in that directory.                                   º
echo   º                                                                        º
echo   º   *  If PAPAM is already installed on your hard disk, this will        º
echo   º      update the files in the %1\PAPAMAKE directory.                    º
echo   º                                                                        º
echo   º   *  To run the program, type PAPAM and press ENTER.                   º
echo   º                                                                        º
echo   º   *  If you don't want PAPAM installed/updated at this time, press     º
echo   º      CTRL + BREAK.                                                     º
echo   º                                                                        º
echo   ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ¼
echo 
pause
cls
if exist %1\PAPAMAKE\*.* goto EXISTS
echo Making directory %1\PAPAMAKE . . .
md %1\PAPAMAKE
:CHECK
if exist PAPAM.EXE goto CONTINUE
echo 
echo Place the disk containing Pencil and Paper Activity Maker files in the
echo active drive.
echo 
pause
goto CHECK
:CONTINUE
echo 
echo Copying Pencil and Paper Activity Maker files . . .
copy *.* %1\PAPAMAKE
if not exist %1\PAPAMAKE\PAPAM.EXE goto INSTALLERROR
if not exist %1\PAPAMAKE\BRUN45.EXE goto INSTALLERROR
cd %1\PAPAMAKE
echo 
echo Pencil and Paper Activity Maker is installed/updated on your hard disk.  
echo To run it, type PAPAM.
%1
echo 
goto DONE
:WHATDRIVE
cls
echo Installation Error:  To install Pencil and Paper Activity Maker on your
echo hard disk, you must include the drive as part of the install command.
echo for example, to install Pencil and Paper Activity Maker on drive C, type 
echo INSTALL C: and press ENTER.
goto ERRORQUIT
:NOTDRIVE
cls
echo Installation Error: The hard drive letter can be a letter from C to F,
echo For example, INSTALL C: will install Pencil and Paper Activity Maker
echo on drive C.  You must include a colon after the drive letter.
goto ERRORQUIT
:INSTALLERROR
cls
echo Installation Error: Do you have enough space on your hard disk?
echo Did you give the proper hard drive letter?
goto ERRORQUIT
:EXISTS
cls
echo Updating directory %1\PAPAMAKE . . .
goto CHECK
:ERRORQUIT
echo 
echo Pencil and Paper Activity Maker was as not installed correctly.
echo 
:DONE
