home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / INFO / MISC / TNH_PC.ZIP / JEWELL.NL < prev    next >
Encoding:
Text File  |  1987-01-14  |  2.8 KB  |  106 lines

  1. Disk Copying on the IBM PC XT
  2.  
  3.               Bob Jewell
  4.        Hawaii IBM PC Users Group
  5.  
  6. Since the IBM PC XT has only one
  7. diskette drive, I found it somewhat
  8. awkward to copy from one diskette to
  9. another. If I use DISKCOPY or COPY A
  10. system instructs me to swap the "A"
  11. and "B" diskettes in and out of slot
  12. A after each and every file on the
  13. diskette.
  14.  
  15. I found another approach which
  16. employs the subdirectory
  17. capabilities of DOS 2.0. It seems to
  18. work well for the COPY mode since it
  19. saves the repetitive disk swapping.
  20. However, DISKCOPY, (an image copy),
  21. must still be done via the normal
  22. swapping method. .
  23.  
  24. The first step is to define a
  25. subdirectory. I chose the name
  26. SUBDIR1 and set it up by the command:
  27.  
  28. C>MKDIR\SUBDIR1
  29.  
  30. To copy all of the files from one
  31. diskette to another, copy them from
  32. the source diskette to the fixed disk
  33. subdirectory:
  34.  
  35. C>COPY A:*.* C:\SUBDIR1
  36.  
  37. Then replace the source diskette in
  38. slot A with the target diskette. Copy
  39. the files from the subdirectory on
  40. the fixed disk to the target
  41. diskette:
  42.  
  43. C>COPY C:\SUBDIR1\*.* A:
  44.  
  45. The last step is to erase the files
  46. in the subdirectory.  This allows
  47. another diskette to be copied later,
  48. as its files will be alone in the
  49. subdirectory ...not added to the set
  50. just copied:
  51.  
  52.  
  53. C>ERASE C:\SUBDIR1\*.*
  54. Are you sure (Y/N)? Y
  55.  
  56. In the ERASE step it is crucial that
  57. the appropriate subdirectory name is
  58. used or the entire fixed disk will be
  59. erased!  As with most operations
  60. utilizing the fixed disk, an
  61. extra-cautious approach and frequent
  62. backups are necessary.
  63.  
  64. Several variations are possible. For
  65. example, in the first COPY operation
  66. above, from source diskette(s) to the
  67. fixed disk subdirectory, a series of
  68. individual files can be specified
  69. rather than using the *.*, thus
  70. creating a new "diskette" in the
  71. subdirectory that will then be copied
  72. out in the second COPY operation.
  73.  
  74. For applications where it is desired
  75. to copy one diskette to another
  76. without change, the following BAT
  77. procedure may be used. It prompts the
  78. user to insert the source diskette
  79. then the target diskette. The target
  80. diskette should be pre-formatted,
  81. normally having no files on it unless
  82. it is desired to append to it (such
  83. as when consolidating
  84. partially-filled diskettes).
  85.  
  86.  
  87. ECHO OFF
  88. REM DSKTODSK.BAT  COPIES FILES FROM
  89. REM ONE DISKETTE TO ANOTHER USING
  90. REM THE IBM PC XT - R. M. JEWELL
  91. REM APPENDS ALL FILES ON SOURCE TO
  92. REM EXISTING FILES ON TARGET
  93. ECHO OK TO ERASE SUBDIR1 ON C: ?
  94. ECHO HIT ANY KEY ELSE CTRL+BREAK
  95. PAUSE
  96. ERASE C:\SUBDIR1\*.*
  97. ECHO INSERT SOURCE IN DRIVE A:
  98. ECHO HIT ANY KEY WHEN READY
  99. PAUSE
  100. COPY A:*.* C:\SUBDIR1
  101. ECHO REMOVE DISKETTE FROM A:
  102. ECHO INSERT TARGET IN DRIVE A:
  103. ECHO HIT ANY KEY WHEN READY
  104. PAUSE
  105. COPY C:\SUBDIR1\*.* A:
  106.