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 >
DOS Batch File  |  1993-01-09  |  3KB  |  100 lines

  1. ECHO OFF
  2. IF %1?==? GO VIEW INSTALL
  3. IF %1==HD GOTO CHKPARM2
  4. IF %1==1D GOTO CHKPARM2
  5. IF %1==2D GOTO CHKPARM2
  6. IF %1==3D GOTO CHKPARM2
  7. CLS
  8. ECHO Option "%1" not recognised.
  9. PAUSE
  10. GO DISPLAY NOCLR OPTIONS
  11. :CHKPARM2
  12. IF NOT %3?==? GOTO BEGIN
  13. CLS
  14. ECHO Missing DRIVE ID parms.   Enter:  GO INSTALL %1 x y
  15. ECHO where x=drive ID in which distribution diskettes are placed
  16. ECHO and   y=drive ID on which programs are to be installed.
  17. ECHO :
  18. ECHO (NOTE: do not place a ":" after the character identifying the drive)
  19. ECHO :
  20. GOTO ENDIT
  21. :BEGIN
  22. CLS
  23. ECHO Beginning "%1" installation of the Family History System onto drive "%3:"
  24. ECHO :
  25. ECHO You should have the three FHS distribution diskettes available, labeled
  26. ECHO "B1", "B2" and "B3" (If you are unsure about this, press CTRL+C to end this
  27. ECHO procedure and then enter: GO VIEW INSTALL)
  28. IF %1==HD GOTO PAUSE1
  29. ECHO :
  30. IF %1==2D GOTO 2DMSG
  31. IF %1==3D GOTO 3DMSG
  32. ECHO You should also have a formatted diskette, labeled STARTUP, to receive
  33. ECHO the FHS program files.
  34. GOTO PAUSE1
  35. :2DMSG
  36. ECHO You should also have 2 formatted diskettes, labeled STARTUP and UTILITY
  37. ECHO to receive the FHS program files.
  38. GOTO PAUSE1
  39. :3DMSG
  40. ECHO You should also have 3 formatted diskettes, labeled STARTUP, UTILITY, and
  41. ECHO REPORT to receive the FHS program files.
  42. :PAUSE1
  43. ECHO :
  44. PAUSE
  45. ECHO :
  46. IF %1==HD GOTO HDINSTAL
  47. ECHO If your system has 2 disk drives you should place the STARTUP diskette
  48. ECHO in the "%3:" drive at this time.
  49. ECHO :
  50. ECHO If your system has a single diskette drive, wait until prompted to place
  51. ECHO the STARTUP diskette in this drive (which will then be designated the
  52. ECHO "%3:" drive).
  53. ECHO During this installation procedure you will be faced with a lot of "disk
  54. ECHO shuffling".  I will try to keep you informed as to which diskettes should
  55. ECHO be in the "%2:" and "%3:" drives, but you should wait until instructed by
  56. ECHO the operating system to switch diskettes in your disk drive.
  57. ECHO :
  58. PAUSE
  59. ECHO :
  60. ECHO I am now going to copy a file to the "%3:" drive which will take control
  61. ECHO of the installation process.
  62. ECHO :
  63. COPY %2:\FDINSTAL.BAT %3:\FHSINSTL.BAT
  64. %3:
  65. CD \
  66. FHSINSTL %1 %2 %3 B1 STARTUP
  67. :HDINSTAL
  68. %3:
  69. CD \
  70. MD FAMILY
  71. CD \FAMILY > NUL:
  72. IF NOT EXIST FAMILY.DAT GOTO NEWINSTL
  73. ECHO If you received a message such as "Unable to create directory", or
  74. ECHO "Directory already exists" you may ignore it.  The \FAMILY sub-directory
  75. ECHO was already on the "%3:" drive.  During this RE-installation of the Family
  76. ECHO History System onto your "%3:" drive, the updated program files will be
  77. ECHO copied into the existing sub-directory on that drive.
  78. ECHO :
  79. PAUSE
  80. ECHO :
  81. GOTO COPYPGMS
  82. :NEWINSTL
  83. ECHO A new sub-directory (\FAMILY) has been created on your "%3:" drive.
  84. ECHO This directory will contain all Family History System files except a
  85. ECHO single batch file (FHS.BAT) which will be created in the main directory
  86. ECHO of the "%3:" drive, to be used for starting a Family History session.
  87. ECHO :
  88. CD \
  89. IF EXIST FHS.BAT GOTO COPYPGMS
  90. ECHO Creating FHS.BAT file
  91. ECHO>FHS.BAT REM Starting Family History System
  92. ECHO>>FHS.BAT ECHO OFF
  93. ECHO>>FHS.BAT CD \FAMILY
  94. ECHO>>FHS.BAT FAMINIT
  95. ECHO>>FHS.BAT CD \
  96. :COPYPGMS
  97. CD \FAMILY
  98. COPY %2:\HDINSTAL.BAT FHSINSTL.BAT>NUL:
  99. FHSINSTL HD %2 %3
  100. :ENDIT