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