home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / private / mpc93mar.zip / DISKCOPY.DAT < prev    next >
Text File  |  1993-02-18  |  4KB  |  85 lines

  1.  
  2.  
  3.                            Diskcopy, Copy and Xcopy
  4.             From The Fox Valley PC Association-Illinois, Fox Tales
  5.                           via SJIBMPCUG Bits & Bytes
  6.  
  7.      One of the things we learn almost immediately when confronted with a
  8.      computer is that there are files and we're supposed to do something
  9.      about them. Even if we have no idea at all what they are, the
  10.      reference manual usually gets us involved with them via the install
  11.      section.
  12.  
  13.      Unfortunately, most reference manuals present DISKCOPY or COPY as the
  14.      way to install program files without any explanation of what's
  15.      happening in the underlying environment.
  16.  
  17.      To understand the idea of copying, we need to know that pieces of
  18.      information (files) reside in two areas of the computer system: on the
  19.      disk, as a magnetic imprint which keeps the information even when
  20.      there is no electricity, and in RAM (Random Access Memory) which is a
  21.      sort of twilight zone of computer technology and only works when there
  22.      is a supply of electricity.
  23.  
  24.      When we start a program, or retrieve a file into a word processor or
  25.      spreadsheet, the computer makes a copy of the information from the
  26.      disk and puts that copy in RAM. There, we can manipulate and change
  27.      all sorts of things without any impact on the magnetism still sitting
  28.      on the disk -- until we save to the disk.
  29.  
  30.      So at most times, there exists a magnetic map of a program, or a
  31.      letter we wrote, or our current checkbook. Then if we're using the
  32.      computer to make changes to the checkbook or letter, there exists
  33.      also a copy of that in RAM. Some programs write to disk immediately
  34.      upon going to the next record (database), or check (accounting). Many
  35.      programs wait and let us press the Save key.
  36.  
  37.      As we build more files, or install more and more programs, we realize
  38.      we need to move things around, or delete the files, or even (oddly
  39.      enough) back up our data files. Here, once again, we come in contact
  40.      with the concept of copying files. Drawing on our first experience,
  41.      we might assume that DISKCOPY is the way to go -- particularly if that
  42.      is what our first reference manual suggested, or we may choose the
  43.      plain COPY command.
  44.  
  45.      DISKCOPY
  46.  
  47.      DISKCOPY is designed to make an exact copy of a disk to another disk
  48.      of exactly the same type (360 to 360, 1.44 to 1.44, etc.). It will
  49.      completely overwrite all information on the destination (target) disk
  50.      with all the information on the source disk -- including bad sectors,
  51.      [fragmentation] and other errors.
  52.  
  53.      While DISKCOPY works even on single floppy drive systems, you can't
  54.      DISKCOPY a directory to a floppy disk. DISKCOPY is a separate program
  55.      and needs to be accessible in the path before it will work.
  56.  
  57.      COPY
  58.  
  59.      When we use DOS COPY command, DOS goes to the file we are trying to
  60.      copy; reads up to 64K of it into RAM; then writes that 64K onto the
  61.      destination disk. After that, the cycle begins again until the
  62.      original source file is copied to the destination. If we are copying
  63.      a large number of files, DOS still will read only 64K, then write 64K,
  64.      over and over. In addition, DOS doesn't care at all if the source file
  65.      is different but has the same name as what you designate as the
  66.      destination. DOS COPY will overwrite or combine multiple files into a
  67.      single file and never blink. [COPY is an internal DOS command
  68.      available as soon as COMMAND.COM is loaded].
  69.  
  70.      XCOPY
  71.  
  72.      To get around this [64K limit], if we're copying large numbers of
  73.      files or a very large single file, we have XCOPY, which came into
  74.      being with DOS 3.2. XCOPY reads as much information into RAM as t
  75.      here is room, then writes the whole chunk to the destination. If we
  76.      have five files, each 80K, and there is 400K of RAM, the whole
  77.      operation is done in one read and one write. COPY on the other hand
  78.      will require seven read/writes. XCOPY will also ask us if a
  79.      destination is a file or a directory, if we try to copy 30 files to a
  80.      non-existent directory. [XCOPY is an external DOS program which needs
  81.      to be accessible in the path]. Remember: if you are running DOS 5.0,
  82.      a screenful of help is available for any DOS command simply by
  83.      appending the /? switch.
  84.  
  85.