Category : BASIC Source Code
Archive   : MHDEMOS.ZIP
Filename : INSTALL.BAT

 
Output of file : INSTALL.BAT contained in archive : MHDEMOS.ZIP

echo off
cls
echo MicroHelp Demonstration Installation
echo.
echo.
if "%1" == "" goto NoPath
if "%2" == "" goto NoPath
echo Ready to install on your hard disk. Press ^C to abort or
pause
echo.
echo Attempting to create \MHDEMOS directory on your hard disk. If this
echo directory already exists, DOS will issue an error message, but you
echo can ignore the message.
echo .
md %1\MHDEMOS
copy read.me %1\MHDEMOS
copy t1000.com %1\MHDEMOS
echo.
echo.
echo Attempting to create subdirectory(s) for the demo(s) you have
echo selected. If the directory already exists, DOS will issue an
echo error message, but you can ignore the message.
echo .
if "%2"=="ALL" goto M
if "%2"=="all" goto M
if "%2"=="M" goto M
if "%2"=="m" goto M
if "%2"=="S" goto S
if "%2"=="s" goto S
goto NoPath
:M
md %1\MHDEMOS\MUSCLE
MUSCLE /e%1\MHDEMOS\MUSCLE
if errorlevel 1 goto error
if "%2"=="M" goto Finished
if "%2"=="m" goto Finished
:S
md %1\MHDEMOS\STAYRES
STAYRES /e%1\MHDEMOS\STAYRES
if errorlevel 1 goto error
if "%2"=="S" goto Finished
if "%2"=="s" goto Finished
:Finished
echo.
echo Installation of the demo(s) is complete!
goto end
:error
echo **** E R R O R ****
echo.
echo An error occurred during the installation. Most likely, your
echo hard disk is full. Please correct the problem and run the INSTALL
echo batch file again.
echo.
goto end
:NoPath
echo.
echo Insert the demonstration diskette in drive A: and close the
echo latch. Next, log onto drive A: by typing 'A:' followed by [Enter].
echo.
echo.
echo Syntax: INSTALL Drive: Option
echo.
echo Where 'Drive:' is the drive letter of the hard disk
echo drive where you wish to install this product.
echo.
echo See the READ.ME file for installation options.
echo.
:end