home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Between Heaven & Hell 2
/
BetweenHeavenHell.cdr
/
300
/
206
/
install.bat
< prev
next >
Wrap
DOS Batch File
|
1986-08-31
|
3KB
|
80 lines
ECHO OFF
IF %1?==FD? GOTO BEGIN
IF %2?==? GOTO ERROR
IF %1?==HD? GOTO BEGIN
:ERROR
ECHO To install on a hard disk, enter: INSTALL HD x yyyy
ECHO where "x"=hard disk drive designation (usually "C")
ECHO and "yyyy"=ZERO or blanks (see README document)
ECHO To install on a floppy diskette, enter: INSTALL FD yyyy
ECHO where "yyyy"=ZERO or blanks (see README document)
ECHO (Note: all entries must be in CAPS)
ECHO :
GOTO ENDIT
:ERROR2
ECHO The Family History System distribution diskette must be in the "A" drive
ECHO :
GOTO ENDIT
:BEGIN
IF NOT EXIST A:INSTALL.BAT GOTO ERROR2
CLS
ECHO Beginning %1 installation of Family History System programs
ECHO :
:HDCHECK
IF %1==HD GOTO HDINSTAL
:FDINSTAL
ECHO If your system has 2 disk drives you should place the diskette which
ECHO is to contain the Family programs in the "B" drive at this time.
ECHO :
ECHO If your system has a single diskette drive, wait until prompted to place
ECHO the new program diskette in this drive (which will then be designated the
ECHO "B" drive). During this installation procedure you will be faced with a
ECHO lot of "disk shuffling". Just remember that the distribution diskette
ECHO is in the "A" drive and the new program diskette is in the "B" drive.
ECHO :
PAUSE
ECHO>B:AUTOEXEC.BAT FHS
ECHO>B:CONFIG.SYS BUFFERS=25
IF %2?==ZERO? GOTO ZERO
ECHO>B:FHS.BAT FAMINIT
GOTO COPYPGMS
:ZERO
ECHO>B:FHS.BAT ZERO
ECHO>>B:FHS.BAT FAMINIT
COPY A:ZERO.COM B:
:COPYPGMS
IF EXIST B:FAMANCST.EXE DEL B:FAMANCST.EXE
IF EXIST B:FAMDSCND.EXE DEL B:FAMDSCND.EXE
IF EXIST B:BRUN10.EXE DEL B:BRUN10.EXE
COPY A:*.EXE B:
COPY A:FAMILY.DAT B:
ECHO :
ECHO The installation process is now complete. You may try out the extended
ECHO system by placing the new program diskette in the "A" drive and typing:
ECHO FHS in response to the DOS prompt.
ECHO :
GOTO ENDIT
:HDINSTAL
ECHO During this installation of the Family History System programs on your
ECHO drive %2:, a new sub-directory (\FAMILY) will be created on the %2 drive
ECHO and the Family History programs will be copied to it.
ECHO :
PAUSE
ECHO>%2:FHS.BAT CD \FAMILY
IF %3?==ZERO? ECHO>>%2:FHS.BAT ZERO
ECHO>>%2:FHS.BAT FAMINIT
ECHO>>%2:FHS.BAT CD \
MD %2:FAMILY
IF %3?==ZERO? COPY A:ZERO.COM %2:\FAMILY
IF EXIST %2:\FAMILY\FAMANCST.EXE DEL %2:\FAMILY\FAMANCST.EXE
IF EXIST %2:\FAMILY\FAMDSCND.EXE DEL %2:\FAMILY\FAMDSCND.EXE
IF EXIST %2:\FAMILY\BRUN10.EXE DEL %2:\FAMILY\BRUN10.EXE
COPY A:*.EXE %2:\FAMILY
%2:
ECHO :
ECHO You may now try the Extended Family History System from your drive %2 by
ECHO entering: FHS
ECHO :
:ENDIT
CD \