home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / database / hb20d1.zip / INSTALL.BAT < prev    next >
DOS Batch File  |  1986-05-20  |  3KB  |  110 lines

  1. echo off
  2. rem INSTALL.BAT May 18, 1986,  (must start in drive A:)
  3. rem all parms optional, minimum =  a:install
  4. rem [yes] parm answers questions for you
  5. rem [h or f] specifies h=hard/hi density disk,  f=360k floppy disk
  6. rem [swap spec] = [drive let:] [s for swap or -s for no swap]
  7. rem e.g. a:install d: yes h -s        install c: no f        install c: yes
  8. rem       install d: no h e:s        install c: yes h s    install d:
  9.  
  10. if %1/ == help/ echo Syntax:   install [drive let:] [yes] [h or f] [swap spec]
  11. if %1/ == help/ echo     (use lower case, []=optional)
  12. if %1/ == help/ echo Examples: install d: yes h e:s
  13. if %1/ == help/ echo     (i.e. yes=no questions, h=hard f=floppy, e:s=swap on drive e:)
  14. if %1/ == help/ a:insquit xxx
  15. cls
  16. echo 
  17.  
  18.  
  19.  
  20. HomeBase INSTALL Program
  21. echo -------------------------
  22.  
  23. if not exist a:disk2.doc goto ins0
  24. echo You must start with DISK 1 in Drive A: ! Try again...
  25. pause
  26. %0 %1 %2 %3 %4 %5
  27.  
  28. :ins0
  29. if %1/ == / goto ins1
  30. for %%n in (A:,a:,B:,b:,C:,c:,D:,d:,E:,e:,F:,f:,G:,g:,H:,h:,I:,i:) do if %1/ == %%n/ goto ins1
  31. for %%n in (J:,j:,K:,k:,L:,l:,M:,m:,N:,n:,O:,o:,P:,p:,Q:,q:,R:,r:) do if %1/ == %%n/ goto ins1
  32. for %%n in (S:,s:,T:,t:,U:,u:,V:,v:,W:,w:,X:,x:,Y:,y:,Z:,z:) do if %1/ == %%n/ goto ins1
  33. echo 
  34. ERROR  Use correct drive letter (e.g. A:)
  35.  
  36. a:insquit xxx
  37.  
  38. :ins1
  39. if %3/ == h/ goto yes2
  40. if %3/ == f/ goto yes4
  41.  
  42. if %2/ == yes/ goto yes1
  43. echo INSTALL will change a copy of HomeBase Disk 1 or add programs to
  44. echo your boot disk so that HomeBase can be started easily and automatically.
  45. echo However, the installation is easily reversible -- see Section I of
  46. echo the Installation document.
  47.   
  48.  
  49. echo This Install program is safe.  The final step of installation
  50. echo will require your Yes/No reply.
  51.  
  52.  
  53.  
  54. pause
  55. cls
  56. echo 
  57.  
  58.  
  59.  
  60.  
  61. The DOS "BATCH" processor is quite slow so there may be a delay of up to
  62. echo 30 seconds while the computer is "thinking".  Please wait this long before
  63. echo you suspect any problems.
  64.  
  65.  
  66. echo To answer YES press "Y", to answer NO press "N".
  67.  
  68. a:ask Ok to proceed?
  69. if errorlevel 2 a:insquit
  70. :yes1
  71. cls
  72. echo  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.   Do you want to install HomeBase
  79. a:ask on a HARD Disk (or RAM disk or high density 720k+ floppy)
  80. if not errorlevel 2 goto hardd
  81. a:ask on FLOPPY disks (i.e. not on a hard disk)
  82. if not errorlevel 2 goto flop
  83. a:insquit
  84.  
  85. :hardd
  86. rem -- HARD DISK --
  87. :yes2
  88. %1
  89. cd \
  90. if %1/ == / copy a:inshard.bat c:insh$r-t.bat
  91. if %1/ == / c:insh$r-t C: %2 %3 %4 %5
  92. if %1/ == c:/ copy a:inshard.bat c:insh$r-t.bat
  93. if %1/ == c:/ c:insh$r-t C: %2 %3 %4 %5
  94.  
  95. copy a:inshard.bat %1insh$r-t.bat
  96. %1insh$r-t %1 %2 %3 %4 %5
  97. a:insquit
  98.  
  99. rem -- FLOPPY --
  100. :yes4
  101. :flop
  102. a:
  103. cd \
  104. if %1/ == / a:insflop B: %2
  105. if %1/ == a:/ a:insflop B: %2
  106. if %1/ == A:/ a:insflop B: %2
  107. if %1/ == b:/ a:insflop B: %2
  108. a:insflop %1 %2
  109. a:insquit
  110.