home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 17 / CD_ASCQ_17_101194.iso / vrac / bimar10a.zip / INSTALL.BAT < prev    next >
DOS Batch File  |  1994-08-12  |  4KB  |  115 lines

  1. @echo off
  2. if %1nothing==nothing goto noparams
  3. if %6!==switch! goto kjv1
  4. echo  
  5. echo BIBLE MARATHON will be installed on hard disk %3.  
  6. echo Program files will be installed to %3\%4.  
  7. echo KJV Bible files will be installed to %3\%5. 
  8. echo If you want to abort, press Ctrl-C now.
  9. echo Otherwise, to continue installation,
  10. pause
  11. cls
  12. if exist %3\%4\*.* goto already
  13. md %3\%4
  14. cls
  15. if %1==a: goto floprompt
  16. if %1==A: goto floprompt
  17. if %1==b: goto floprompt
  18. if %1==B: goto floprompt
  19. goto again
  20. :floprompt
  21. echo  
  22. echo Please make sure install files are in %1%2 then
  23. pause
  24. :again
  25. cls
  26. echo                Please wait while copying files to drive %3
  27. for %%A in (*.*) do copy %%A %3\%4 > nul
  28. if exist %3\%4\bim_uzip.* del %3\%4\bim_uzip.*
  29. if exist %3\%4\remove.bat copy %3\%4\remove.bat %3\*.* > nul
  30. if exist %3\%4\yes copy %3\%4\yes %3\*.* > nul
  31. if exist %3\%4\remove.bat del %3\%4\remove.bat
  32. if exist %3\%4\yes del %3\%4\yes
  33. if exist %3\%4\mastr.dat goto change
  34. cls
  35. echo 
  36. echo Please remove BIBLE MARATHON Program Disk and insert next 
  37. echo Program Disk in drive %1.  Then,
  38. pause
  39. goto again
  40. :already
  41. cls
  42. echo BIBLE MARATHON is already installed.
  43. goto end
  44. :change
  45. rem rerun install.bat from hard disk file
  46. %3
  47. cd \%4
  48. install %1 %2 %3 %4 %5 switch
  49. :kjv1
  50. cd \
  51. if exist \%4\???00?.exe goto loop 
  52. cls
  53. echo 
  54. echo Please remove your BIBLE MARATHON Program Disk from drive %1.
  55. echo Have your Bible Disks ready and in numerical order (beginning
  56. echo with Disk 1). Insert Bible Disk 1 in drive %1 and
  57. pause
  58. :loop
  59. cls
  60. echo              File Compression/Decompression by LHA version 2.13
  61. echo   Copyright (c) Haruyasu Yoshizaki, 1988-91 (LHA's SFX 2.13L  Yoshi, 1991)
  62. echo   Please wait while Bible files are being expanded and copied to %3\%5.
  63. echo                       This will take a few minutes. . .
  64. if not exist %3\%4\???00?.exe goto nokjv 
  65. for %%B in (%3\%4\???00?.exe) do %%B %3\*.* > nul
  66. :nokjv
  67. if exist %3\kjv\rev\*.* goto done
  68. if not exist %3\kjv\rev\*.* goto again
  69. :again
  70. cls
  71. echo 
  72. echo Please remove disk and insert next disk in sequence; then 
  73. pause
  74. goto loop
  75. :noparams
  76. cls
  77. echo 
  78. echo     Please type MM + Enter at the DOS prompt to run MAINMENU
  79. echo          program.  Then choose "Install Bible Marathon." 
  80. echo  
  81. goto end
  82. :done
  83. cd \%4
  84. if exist ???00?.exe del ???00?.exe > nul
  85. if not %5==kjv rendir \kjv %5 > nul
  86. if exist rendir.com del rendir.com
  87. if not exist %1\bm_temp\*.* goto skiptemp
  88. %1
  89. cd \bm_temp
  90. del *.* < %3\yes > nul
  91. cd \
  92. rd bm_temp
  93. %3
  94. cd \%4
  95. :skiptemp
  96. cls
  97. echo 
  98. echo Bible Marathon and KJV files have been successfully installed in \%4 
  99. echo and \%5 directories on drive %3.  If you have a monochrome monitor, type 
  100. echo "MM" + Enter and select "Edit Colors Program" from the menu.  Choose 
  101. echo "Color Scheme 3," or modify as desired. 
  102. echo  
  103. echo To complete installation, at the DOS prompt type "MM" (Enter).  Then, 
  104. echo from the Main Menu select "Load Data Base Program" and from the Data
  105. echo Base Menu select "Make Data Files".  (Press "M").  This will make the
  106. echo FACTS.DAT, BOOKS.DAT and VERSE.DAT files.  Bible Marathon installation 
  107. will then be complete.
  108. echo  
  109. echo ******************************  N O T E  *********************************
  110. echo The BM_TEMP directory on drive %1 has been removed with its files (includ-
  111. echo ing batch files).  So, after this note there may be a "Batch file missing"
  112. echo message, which you can safely ignore.  BIBLE MARATHON IS NOW READY TO RUN!
  113. echo **************************************************************************
  114. :end
  115.