home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PsL Monthly 1994 February
/
psl_9403.zip
/
psl_9403
/
DOS
/
EDUCA
/
CNOTEBK.ZIP
/
INSTALL.BAT
< prev
next >
Wrap
DOS Batch File
|
1993-12-01
|
14KB
|
470 lines
@echo off
cls
if "%1" == "" goto explain
if "%1" == "?" goto explain1
goto hardwar1
:install
if "%1" == "C" goto installa
if "%1" == "D" goto installa
if "%1" == "E" goto installa
if "%1" == "F" goto installa
goto drivechk
:installa
@echo off
if not "%2" == "" goto installb
if exist %1:\usa\options.lxx goto warning1
if exist %1:\usa\*.* goto fail3
goto chk1a
:installb
if exist %1:\%2\options.lxx goto warning1
if exist %1:\%2\*.* goto fail3
:chk1a
if "%2" == "" tcnstall %1:\usa
if not "%2" == "" tcnstall %1:\%2
goto pass1
:warning1
cls
echo WARNING!!!
echo.
echo A copy of the TCN program already exists. If you continue, it will be
echo overwritten and any previous work you have done will be lost.
echo.
echo To avoid overwriting, use the CTRL + C key combination and then type a Y
echo according to the following instructions:
echo.
echo 1) Press and hold the CTRL key.
echo 2) Type the letter C.
echo 3) Release both keys. A prompt appears "Terminate batch job (Y/N)?"
echo 4) Type the letter Y.
echo.
echo The DOS prompt appears. Type INSTALL ? to get information about changing
echo install target drive and directory.
echo.
echo If you want to overwrite, press any other key.
echo.
pause
cls
echo Press and hold the "Y" key to overwrite all files. When you hear
echo rapid beeping sounds coming from your computer, release the "Y" key.
echo When file extraction stops, hold the "Y" key down some more.
echo.
echo Continue this process until you get a DOS prompt.
echo.
goto chk1a
:fail1
cls
echo Installation was not successful.
echo.
echo You typed the following command:
echo.
echo INSTALL %1 %2
echo.
echo Verify the letter you specified (%1) is a valid drive. Also, verify
echo that you did NOT type a colon after the letter.
echo.
if not "%2" == "" echo Verify the path you specified (%2) is valid.
echo.
echo Type INSTALL with:
echo.
echo a different drive letter, or
if not "%2" == "" echo a different path, or
echo the ? option.
ECHO.
goto end
:fail3
cls
echo Installation was not attempted.
echo.
echo The install path that you specified is already in use.
echo.
echo You typed the following command:
echo.
echo INSTALL %1 %2
echo.
echo Type INSTALL with:
echo.
echo a different drive letter, or
if not "%2" == "" echo a different path (option 2), or
if "%2" == "" echo a path specified (other than USA) using option 2, or
echo the ? option.
echo.
goto end
:explain
cls
echo This INSTALL.BAT file installs version 2.0 of the TCN program on your hard
echo drive.
echo.
goto hardware
:parms
echo When using INSTALL.BAT to perform installation of the TCN program, one
echo option is REQUIRED.
echo.
echo The single REQUIRED option is the drive letter of the hard drive where you
echo want to install the TCN program.
echo.
echo Type the letter ONLY, no colon.
echo.
echo EXAMPLE 1: To install the TCN program on your C: drive, type the following
echo.
echo INSTALL C
echo.
echo EXAMPLE 2: To install the TCN program on your D: drive, type
echo.
echo INSTALL D
echo.
pause
cls
echo The TCN program will be installed on the drive you specify in a directory
echo named USA.
echo.
echo You can change the directory name if you want to.
echo.
echo Type INSTALL ? for more information.
echo.
echo OR, type INSTALL followed by a drive letter to get started.
echo.
pause
echo NOTE: For faster execution of INSTALL.BAT, turn on CAPS LOCK or type
echo all capital letters. Select a hard drive letter between C and F,
echo inclusive. Do not type a colon with the drive letter.
echo.
goto end.
:explain1
echo One option is REQUIRED to use this INSTALL.BAT file.
echo.
echo One additional option can be used.
echo.
echo Option(s) are typed on the command line with the INSTALL command. A space
echo must precede each option.
echo.
pause
cls
echo The first option (REQUIRED) is a drive letter.
echo.
echo The drive specified must:
echo.
echo 1) exist on your computer,
echo 2) not be write protected,
echo 3) not be a CD-ROM (read-only) drive, and
echo 4) have at least 1 megabyte of available space.
echo.
echo Do not type a colon or a backslash with the letter.
echo.
pause
cls
echo The 2nd option (not REQUIRED) specifies the name of the directory in which
echo to install the TCN program.
echo.
echo The default install directory name is USA.
echo.
echo You can specify any valid directory name including USA.
echo.
echo Do not use a colon or a leading backslash.
echo.
echo EXAMPLE 1: To install the TCN program on drive C in a directory named TCN
echo type
echo.
echo INSTALL C TCN
echo.
echo EXAMPLE 2. To install the TCN program on drive D in a directory named
echo MYTCN, type
echo.
echo INSTALL D MYTCN
echo.
goto end
:hardware
pause
:hardwar1
cls
echo HARDWARE REQUIREMENTS
echo.
echo To install and evaluate the TCN program, you must have at least one
echo megabyte of space available on the target hard drive. More is better.
echo.
echo Also, your computer must have at least 640K RAM. At least 500 K of
echo conventional RAM must be available at the DOS prompt. Use DOS command
echo MEM or CHKDSK to find out how much conventional RAM is available.
echo.
echo DOS 6 users can use MemMaker to free up more space if needed.
echo.
echo To evaluate available RAM now, press and hold the CTRL key, type the
echo letter C, release both keys, and then type a Y. If so, you are returned
echo to DOS to use MEM or CHKDSK. Any other key continues installation.
echo.
pause
cls
echo ACKNOWLEDGMENT
echo.
echo LHA is a public domain file compression utility written and copyrighted
echo 1988-91 by Haruyasu Yoshizaki of Japan.
echo.
echo TCNSTALL.EXE is a self-extracting archive created using LHA version 2.13
echo with the large model option.
echo.
echo TCNbP Company hereby:
echo.
echo congratulates the author of LHA for the excellent
echo technical accomplishment it is,
echo.
echo acknowledges the enormous effort involved in the realization
echo of such a work, and
echo.
echo gratefully accepts his permission to use LHA.
echo.
pause
if not "%1" == "" goto install
cls
echo You can use the INSTALL.BAT file with one or two options to install the TCN
echo Program.
echo.
echo OR, you can type TCNSTALL followed by the drive and path where you want
echo to install the TCN program. Drive and path can be any valid DOS path
echo on a drive with at least 1 megabyte of free space available.
echo.
pause
cls
if "%1" == "" goto parms
goto install
:drivechk
echo on
if "%1" == "c" goto installa
if "%1" == "C:" goto ginstall
if "%1" == "c:" goto ginstall
if "%1" == "d" goto installa
if "%1" == "D:" goto ginstall
if "%1" == "d:" goto ginstall
if "%1" == "e" goto installa
if "%1" == "E:" goto ginstall
if "%1" == "e:" goto ginstall
if "%1" == "f" goto installa
if "%1" == "F:" goto ginstall
if "%1" == "f:" goto ginstall
if "%1" == "G:" goto ginstall
if "%1" == "G" goto installa
if "%1" == "g" goto installa
if "%1" == "g:" goto ginstall
if "%1" == "H:" goto ginstall
if "%1" == "H" goto installa
if "%1" == "h" goto installa
if "%1" == "h:" goto ginstall
if "%1" == "I:" goto ginstall
if "%1" == "I" goto installa
if "%1" == "i" goto installa
if "%1" == "i:" goto ginstall
if "%1" == "J:" goto ginstall
if "%1" == "J" goto installa
if "%1" == "j" goto installa
if "%1" == "j:" goto ginstall
if "%1" == "K:" goto ginstall
if "%1" == "K" goto installa
if "%1" == "k" goto installa
if "%1" == "k:" goto ginstall
if "%1" == "L:" goto ginstall
if "%1" == "L" goto installa
if "%1" == "l" goto installa
if "%1" == "l:" goto ginstall
if "%1" == "M:" goto ginstall
if "%1" == "M" goto installa
if "%1" == "m" goto installa
if "%1" == "m:" goto ginstall
if "%1" == "N:" goto ginstall
if "%1" == "N" goto installa
if "%1" == "n" goto installa
if "%1" == "n:" goto ginstall
if "%1" == "O:" goto ginstall
if "%1" == "O" goto installa
if "%1" == "o