home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Education Master 1994 (4th Edition)
/
EDUCATIONS_MASTER_4TH_EDITION.bin
/
files
/
genelogy
/
fhs1
/
install.bat
< prev
next >
Wrap
DOS Batch File
|
1993-01-09
|
3KB
|
100 lines
ECHO OFF
IF %1?==? GO VIEW INSTALL
IF %1==HD GOTO CHKPARM2
IF %1==1D GOTO CHKPARM2
IF %1==2D GOTO CHKPARM2
IF %1==3D GOTO CHKPARM2
CLS
ECHO Option "%1" not recognised.
PAUSE
GO DISPLAY NOCLR OPTIONS
:CHKPARM2
IF NOT %3?==? GOTO BEGIN
CLS
ECHO Missing DRIVE ID parms. Enter: GO INSTALL %1 x y
ECHO where x=drive ID in which distribution diskettes are placed
ECHO and y=drive ID on which programs are to be installed.
ECHO :
ECHO (NOTE: do not place a ":" after the character identifying the drive)
ECHO :
GOTO ENDIT
:BEGIN
CLS
ECHO Beginning "%1" installation of the Family History System onto drive "%3:"
ECHO :
ECHO You should have the three FHS distribution diskettes available, labeled
ECHO "B1", "B2" and "B3" (If you are unsure about this, press CTRL+C to end this
ECHO procedure and then enter: GO VIEW INSTALL)
IF %1==HD GOTO PAUSE1
ECHO :
IF %1==2D GOTO 2DMSG
IF %1==3D GOTO 3DMSG
ECHO You should also have a formatted diskette, labeled STARTUP, to receive
ECHO the FHS program files.
GOTO PAUSE1
:2DMSG
ECHO You should also have 2 formatted diskettes, labeled STARTUP and UTILITY
ECHO to receive the FHS program files.
GOTO PAUSE1
:3DMSG
ECHO You should also have 3 formatted diskettes, labeled STARTUP, UTILITY, and
ECHO REPORT to receive the FHS program files.
:PAUSE1
ECHO :
PAUSE
ECHO :
IF %1==HD GOTO HDINSTAL
ECHO If your system has 2 disk drives you should place the STARTUP diskette
ECHO in the "%3:" drive at this time.
ECHO :
ECHO If your system has a single diskette drive, wait until prompted to place
ECHO the STARTUP diskette in this drive (which will then be designated the
ECHO "%3:" drive).
ECHO During this installation procedure you will be faced with a lot of "disk
ECHO shuffling". I will try to keep you informed as to which diskettes should
ECHO be in the "%2:" and "%3:" drives, but you should wait until instructed by
ECHO the operating system to switch diskettes in your disk drive.
ECHO :
PAUSE
ECHO :
ECHO I am now going to copy a file to the "%3:" drive which will take control
ECHO of the installation process.
ECHO :
COPY %2:\FDINSTAL.BAT %3:\FHSINSTL.BAT
%3:
CD \
FHSINSTL %1 %2 %3 B1 STARTUP
:HDINSTAL
%3:
CD \
MD FAMILY
CD \FAMILY > NUL:
IF NOT EXIST FAMILY.DAT GOTO NEWINSTL
ECHO If you received a message such as "Unable to create directory", or
ECHO "Directory already exists" you may ignore it. The \FAMILY sub-directory
ECHO was already on the "%3:" drive. During this RE-installation of the Family
ECHO History System onto your "%3:" drive, the updated program files will be
ECHO copied into the existing sub-directory on that drive.
ECHO :
PAUSE
ECHO :
GOTO COPYPGMS
:NEWINSTL
ECHO A new sub-directory (\FAMILY) has been created on your "%3:" drive.
ECHO This directory will contain all Family History System files except a
ECHO single batch file (FHS.BAT) which will be created in the main directory
ECHO of the "%3:" drive, to be used for starting a Family History session.
ECHO :
CD \
IF EXIST FHS.BAT GOTO COPYPGMS
ECHO Creating FHS.BAT file
ECHO>FHS.BAT REM Starting Family History System
ECHO>>FHS.BAT ECHO OFF
ECHO>>FHS.BAT CD \FAMILY
ECHO>>FHS.BAT FAMINIT
ECHO>>FHS.BAT CD \
:COPYPGMS
CD \FAMILY
COPY %2:\HDINSTAL.BAT FHSINSTL.BAT>NUL:
FHSINSTL HD %2 %3
:ENDIT