@echo off
echo off
cls
echo 
echo 
echo 
echo Might and Magic ]I[ DEMO Hard Drive Install Program...
echo 
echo 
echo 
if %1x == x goto usage
if %0 == install goto ok
if %0 == Install goto ok
if %0 == INSTALL goto ok
goto use2
:ok
if %1 == a: goto use3
if %1 == A: goto use3
if %1 == b: goto use3
if %1 == B: goto use3
if %1 == c: goto install
if %1 == C: goto install
if %1 == d: goto install
if %1 == D: goto install
if %1 == e: goto install
if %1 == E: goto install
if %1 == f: goto install
if %1 == F: goto install
goto usage
:install
md %1\mm3demo
if errorlevel 1 goto err1
copy *.* %1\mm3demo
if errorlevel 1 goto err2
cd %1\mm3demo
%1
mm3 ?
echo Install Successful
echo 
echo Type: mm3 [options] to run...
echo 
goto end
:use3
echo 
echo Install must copy to a Hard Drive.
goto abort
:use2
echo 
echo Install must be run from drive a: for b:
goto abort
:usage
echo 
echo Usage: install [drive:]
echo    ie: install c:
goto abort
:err1
echo 
echo Error creating directory... (may already exist?)
:abort
echo 
echo Install aborted...
echo 
goto end
:err2
echo 
echo Error copying files (disk may be full?)
goto abort
:end
