echo off
if exist mgpack.exe goto ok
echo To run the Lotus Magellan Sampler, you must set the current drive to
echo the drive which contains the Sampler diskette.  For example, if the
echo Sampler diskette was in drive A:, you would type the following at the
echo DOS prompt, pressing the Enter key after each line:
echo a:
echo mgsample
goto end
:ok
if not "%1"=="" goto otherDrive
cls
echo 旼컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴�
echo � Lotus Magellan Sampler                                            �
echo � Copyright (C) 1990 Lotus Development Corporation                  �
echo � All rights reserved.                                              �
echo �                                                                   �
echo � The Magellan Sampler will be installed on drive C: in the         �
echo � directory C:\MGSAMPLE.  You may specify a different disk drive    �
echo � by restarting this batch file with a single argument specifying   �
echo � the letter of the drive you want to use.  For example, to install �
echo � the Sampler on drive D:, at the DOS prompt you would type:        �
echo � mgsample d                                                        �
echo �                                                                   �
echo � Installation of the Magellan Sampler will require approximately   �
echo � 600 kilobytes of free disk space.                                 �
echo �                                                                   �
echo � If you do not want to install the Magellan Sampler, or wish to    �
echo � install it on a different disk drive, press Ctrl-C and then Y.    �
echo � To proceed with the installation, press any other key.            �
echo 읕컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴�
pause
cls
echo Installing the Magellan Sampler to drive C:.  Please wait.
if exist c:\mgsample\mgsample.exe goto run
mkdir c:\mgsample
mgpack -o c:\mgsample > nul
if errorlevel 1 goto error
if exist magellan.txt copy magellan.txt c:\mgsample
c:
cd \mgsample
goto run
:otherDrive
cls
echo Installing the Magellan Sampler to drive %1:.  Please wait.
if exist %1:\mgsample\mgsample.exe goto run
mkdir %1:\mgsample
mgpack -o %1:\mgsample > nul
if errorlevel 1 goto error
if exist magellan.txt copy magellan.txt %1:\mgsample
%1:
cd \mgsample
:run
if not exist mgsample.exe goto error
if not exist magellan.msg goto error
erase mgpack.exe
mgsample
goto end
:error
echo The Magellan Sampler was NOT successfully installed.
echo �  Check to make sure that the directory \MGSAMPLE on the disk you
echo    specified is empty.
echo �  Check to see if the disk is full, and clear some space if necessary.
echo �  Access to the disk may be read-only.
echo �  It may be that you don't have network permission to access the disk.
echo �  Consider the possibility of a disk error.
:end
