echo off cls rem --- make sure the user specified valid drive letter (we allow C to F). if %1a == a goto noDriveSpecified if %1 == c: goto begin if %1 == C: goto begin if %1 == d: goto begin if %1 == D: goto begin if %1 == e: goto begin if %1 == E: goto begin if %1 == f: goto begin if %1 == F: goto begin goto notOnThatDrive :begin echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» echo º echo º Makemstr Installation echo º echo º This will create a directory called %1\BIN on your hard disk, echo º and will install PERL in that directory. echo º It will also install makemstr.bat in that directory. echo º If you don't want to install right now, press Ctrl-Break. echo º echo º Add \BIN to your path by editing your autoexec.bat file echo º and adding a line like this... echo º SET PATH=%PATH%;C:\BIN echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ pause cd %1 rem --- make sure drive A contains the program disk --- :1 if exist a:\install.bat goto 2 echo  echo Insert the makemstr Program Disk in drive A. pause goto 1 :2 rem --- create \bin on the current drive. if exist %1\bin\*.* goto 3 echo  echo Creating directory %1\bin... md %1\bin :3 rem --- copy all files --- echo  echo Copying makemstr files... copy a:perlzip.exe %1\bin md %1\bin\lib copy a:perllib.exe %1\bin\lib cd %1\bin %1\bin\perlzip.exe cd %1\bin\lib %1\bin\lib\perllib.exe copy a:*.txt %1\bin copy a:*.bat %1\bin if not exist %1\bin\install.bat goto installationError rem --- installation was successful! :installDone cd %1\bin echo  echo Makemstr is now installed on your hard disk. %1 goto done rem --- user didn't specify a drive letter followed by a colon. :noDriveSpecified echo  echo Installation Error: To install Makemstr on your hard disk, you echo must specify the drive to install Makemstr onto. For example, echo to install Makemstr on drive C, type "INSTALL C:" and press Enter. goto errorDone rem --- user specified invalid drive letter. :notOnThatDrive echo  echo Installation Error: The hard drive letter must be a letter from C to F, echo and must be followed by a colon. For example, "INSTALL C:" will install echo Makemstr on drive C. goto errorDone rem --- general installation error. :installationError echo  echo Installation Error: Perhaps there isn't enough space on your hard disk. echo Makemstr installation requires at least 360k free space. goto errorDone rem --- goto here after an error is detected, to print a message and exit. :errorDone echo  echo Makemstr was not installed correctly. :done