home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / busi / hb20d1.zip / INSFLOP.BAT < prev    next >
DOS Batch File  |  1986-03-20  |  6KB  |  247 lines

  1. rem INSFLOP.BAT  (%1=2nd flop drive, [%2=yes, %3=return]) Mar.19,1986
  2. if %3/ == return/ goto makeret
  3. if %2/ == return/ goto makeret
  4. a:
  5. cd \
  6. cls
  7. echo 
  8.  
  9.  
  10.  
  11.  
  12. HomeBase FLOPPY DISK Installation
  13. echo ---------------------------------
  14.   
  15. if %2/ == yes/ goto yes3
  16. echo A copy of HomeBase DISK 1 will now be changed to support your floppy
  17. echo based system.  If you wish, a copy of your Boot disk can also be changed
  18. echo so that HomeBase is installed automatically every time you boot up.
  19. echo PLEASE use copies, not the originals!
  20.  
  21. pause
  22. cls
  23. echo 
  24.  
  25.  
  26.  
  27.  
  28. For this installation you will need:
  29. echo
  30.     1)    A COPY (not the master) of each HomeBase DISK (1 and 2).
  31. echo         The originals are write-protected so they cannot be
  32. echo         inadvertently erased. Yet HomeBase needs to write on the
  33. echo         disks (for Notebase, Calendar, and other files.)  If you
  34. echo         do not have copies yet, have two blank disks ready.
  35. echo 
  36.      2)    (Optional) A copy of your "BOOT" disk with at least
  37. echo         38 Kilobytes of unused (free) space on it.  This should
  38. echo         be a COPY of the disk you insert in drive A when you
  39. echo         first turn on your computer.  The CONFIG.SYS and
  40. echo         AUTOEXEC.BAT files (if any) should also be there.
  41.  
  42.  
  43.  
  44. pause
  45. cls
  46. echo 
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53. Some computers have one, some have two (2) floppy disk drives.
  54.  
  55. ask Do you have two (2) disk drives (A: and %1)
  56.  
  57. if errorlevel 2 echo 
  58. If you have only one drive, this drive becomes both A: and %1.
  59. if errorlevel 2 echo Be very careful to insert the correct disk when you are asked to insert
  60. if errorlevel 2 echo "disk A:" or  "disk %1" -- it can be quite confusing.
  61. if errorlevel 2 echo (REMEMBER, HomeBase DISK 1 is the "batch" disk.)
  62.  
  63. if errorlevel 2 pause
  64.  
  65. cls
  66. echo .
  67.  
  68.  
  69.  
  70.  
  71.  
  72. :yes3
  73. :makeret
  74. echo 
  75.         Checking if disk write-protected...
  76.  
  77. checkwp A:
  78. if errorlevel 1 makecopy %1 %2 xxx
  79. if exist autoexec.old del autoexec.old
  80. if exist homebase.bat echo 
  81.  
  82.  
  83.     WARNING -- This is a second install of HomeBase.
  84. if exist homebase.bat echo     (DISK 1 restored to original state...)
  85.  
  86.  
  87. if %2/ == yes/ goto yes5
  88. if exist homebase.bat pause
  89.  
  90. :yes5
  91. copy autoflop.bat homebase.bat > nul
  92. cls
  93. echo 
  94.  
  95.  
  96.  
  97.  
  98.  
  99. Please place your BOOT disk (copy) in Drive %1, the one
  100. echo that may have an AUTOEXEC.BAT file on it.  If you don't have
  101. echo (or want to modify) a boot disk just say NO below.
  102.  
  103. ask BOOT disk in %1
  104. if not errorlevel 2 copy %1autoexec.bat a:autoexec.old
  105.  
  106. cls
  107. if %2/ == yes/ goto yes9
  108. echo 
  109.  
  110.  
  111.  
  112.  
  113.     -- ANSWER CAREFULLY --
  114.  
  115. echo  A "yes" answer here will finish the permanent
  116. echo  installation of HomeBase on the disk
  117.  
  118. ask Ok to install HOMEBASE
  119. if errorlevel 2 insquit
  120. :yes9
  121. if exist autoexec.old echo 
  122.  
  123.  
  124.  
  125.  
  126.     * * * Installing HomeBase * * *  (please wait) 
  127.  
  128.  
  129.  
  130. if exist autoexec.old goto doboot
  131. cls
  132. echo 
  133.  
  134.  
  135.  
  136.  
  137.     * * HomeBase now installed for Floppy System * *
  138. :flopdone
  139. echo 
  140.  
  141.  
  142.     To run HomeBase from DISK 1 you must:
  143. echo      1)  Place DISK 1 in Drive A:
  144. echo      2)  Place DISK 2 in Drive %1
  145. echo      3)  Type:
  146. if %1/ == B:/ echo             a:homebase
  147.  
  148. if not %1/ == B:/ echo             a:homebase %1
  149.  
  150. echo      4) HomeBase will load into memory and when done
  151. echo         will give the message:
  152. echo         "Press Alt/Shift/H for HomeBase".
  153. echo      5)  Remove DISK 1.  DISK 2 must stay in Drive %1
  154. echo         (whenever HomeBase is active.)
  155.  
  156.  
  157. if %2/ == yes/ insdone fff
  158. ask Do you want info about Application disks
  159. if errorlevel 2 insdone fff
  160. cls
  161. echo 
  162.  
  163.  
  164.         - NOTES for APPLICATION Disks -
  165.  
  166. echo To add HomeBase to a separate applications disk such as for Lotus or
  167. echo DBase or WordStar,  place this applications disk in Drive A:, put
  168. echo HomeBase disk 2 in Drive %1, and type:
  169.  
  170. echo         copy %1hb.ovr a:
  171. echo         copy %1hb.hlp a:
  172. echo         copy %1hb.ndx a:
  173.  
  174. echo If hb.ovr will not fit, then refer to the alternate schemes described
  175. echo in the Install document.  If the first file fits but the hb.hlp does
  176. echo not fit (i.e. you get an error message),  HomeBase will still work but
  177. echo you will have to rely on your HomeBase manual for help.  The hb.ndx
  178. echo file is optional.
  179.  
  180. echo This information is in your Installation document.
  181.  
  182. pause
  183. insdone fff
  184.  
  185. :doboot
  186. echo 
  187.  
  188.  
  189.  
  190.  
  191.     ( Modifying the BOOT disk in %1...)
  192.  
  193.  
  194. checkwp %1
  195. if errorlevel 1 echo Disk is WRITE protected!  Can't modify it.
  196. if errorlevel 1 goto dob30
  197. diskfree %1 floppy ;(checks floppy for 37k free space)
  198. if not errorlevel 1 goto dob32
  199. echo  
  200. NOT enough free space on %1.  Need about 38k.  Erase unneeded
  201. echo files on your BOOT disk and try again.
  202.  
  203. :dob30
  204. ask Ok to abandon BOOT disk modification
  205. if not errorlevel 2 goto flopdone
  206.  
  207. :dob32
  208. copy autoexec.old+autoboot.bat %1autoexec.bat/a >nul
  209. copy a:hbkernel.com %1
  210. copy a:hbasync.com %1
  211. copy a:hbvsi.com %1
  212.  
  213. cls
  214. echo  
  215.  
  216.  
  217. Your BOOT disk in Drive %1 has been modified for booting-up HomeBase
  218. echo by putting BOOT disk in Drive A: and HomeBase DISK 2 in Drive B:.
  219.  
  220. ask Do you want DISK 2 to be in Drive %1 instead of Drive B:
  221. if not errorlevel 2 echo 
  222. To do this you must MODIFY the autoexec.bat file on the BOOT disk
  223. if not errorlevel 2 echo by changing all occurences of B: to %1.
  224. if not errorlevel 2 pause
  225.  
  226. echo 
  227.  
  228. Installation of HomeBase has created or modified the AUTOEXEC.BAT file. 
  229. echo (if any).  Several lines relating to HomeBase have been placed at
  230. echo the very end.  However, if your original AUTOEXEC.BAT called
  231. echo another BAT file to complete the boot-up process, you must fix this
  232. echo by placing the call to the other BAT file at the end, after the
  233. echo HomeBase lines.  Do this before re-booting.
  234.  
  235.  
  236. ask Do you understand the above
  237. if errorlevel 2 echo ** That's ok, but if HomeBase doesn't work ask someone for help **
  238.  
  239. echo 
  240.  
  241.  
  242.  
  243.  
  244. HomeBase can also run directly from DISK 1.  Here's how: (Please wait...)
  245.  
  246. goto flopdone
  247.