home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / database / hb20d1.zip / MAKECOPY.BAT < prev    next >
DOS Batch File  |  1986-03-19  |  2KB  |  109 lines

  1. rem MAKECOPY.BAT %1=drive let, %2=yes %3=xxx     Mar.19,86
  2. echo off
  3. a:
  4. if exist o_dp_$ba.t_$ del o_dp_$ba.t_$
  5.  
  6. rem if called by itself (not from insflop) skip
  7. if %3/ == xxx/ goto mc5
  8. if not %2/ == xxx/ goto mc10
  9. :mc5
  10. if not %1/ == B:/ goto mc6
  11. echo Sorry, CANNOT copy from Drive %1.  Please make a copy of the
  12. echo original disks and start again by typing "a:install %1 %2".
  13. a:insquit xxx
  14.  
  15. :mc6
  16. echo 
  17.  
  18.  The disk in drive A is write protected  -- it is probably the original
  19. echo master HomeBase diskette -- so we will now run MAKECOPY for you.
  20.  
  21.  
  22. pause
  23.  
  24. :mc10
  25. cls
  26. echo 
  27.  
  28.  
  29.  
  30.  
  31. MAKECOPY:  You will need:
  32. echo     1)  The two original (master) disks
  33. echo     2)  Two erasable or empty blank diskettes.
  34. echo     3)  The standard PC DOS disk with DISKCOPY.COM on it.
  35.  
  36. ask Do you have all of the above
  37. if errorlevel 2 insquit
  38. cls
  39. echo 
  40.  
  41.  
  42.  
  43.  
  44.  
  45. The following procedure is complicated so pay attention.
  46. echo Place the DOS disk in drive %1.
  47.  
  48. ask DOS disk with DISKCOPY.COM in %1
  49. if errorlevel 2 insquit
  50.  
  51. :latchb
  52. cls
  53. echo 
  54.  
  55.  
  56. Be Careful now.  Follow the instruction DISKCOPY will give.  At one point you
  57. echo will take out DOS disk from drive %1 and replace it with the blank
  58. echo disk (target diskette).  Do exactly as told.  If necessary refer
  59. echo to the DOS manual to learn about DISKCOPY's operation.
  60. echo     REMEMBER:
  61. echo        HomeBase DISK 1 = "source"    (drive A)
  62. echo        Empty disk    = "target"    (drive %1)
  63. echo        DOS disk also uses drive %1 when asked for.
  64.  
  65. echo 
  66.  When DISKCOPY asks "copy another?", say NO.
  67.  
  68. %1diskcopy a: %1
  69.  
  70. :try45
  71. echo
  72.  
  73. *** DISK 1 copied ***  Get ready for DISK 2
  74.  
  75. ask DOS disk in drive %1
  76. if errorlevel 2 insquit
  77. echo 
  78.  
  79.  
  80.  
  81.  
  82. echo     HomeBase DISK 2  = "source"  to be put in Drive A.
  83. echo     Empty disk #2     = "target"  to be put in Drive %1.
  84. echo    HomeBase DISK 1  = "batch"   now in A, put back when asked for.
  85. echo     (The DOS disk shares Drive %1,  At the end you will
  86. echo     put DISK 1 back in Drive A.)
  87.  
  88.  
  89. %1diskcopy a: %1
  90. cls
  91. echo
  92.  
  93.  
  94.  
  95.  
  96.     + + + COPY Complete + + +
  97.  
  98.  
  99.  
  100. if exist a:o_dp_$ba.t_$ del a:o_dp_$ba.t_$
  101. echo 1) Put the two master HomeBase disks away.
  102. echo 2) Label the copy disks DISK 1 and DISK 2 (like the originals).
  103. echo 3) Place DISK 1 (copy) in Drive A:
  104.  
  105. if not a%2 == axxx insquit xxx
  106. ask DISK 1 (copy) in A:
  107. if errorlevel 2 insquit
  108. install %1 %2 return
  109.