home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / s / sprdpr20.zip / COPYDISK.TXT < prev    next >
Text File  |  1990-03-11  |  3KB  |  73 lines

  1. Program:    COPYDISK.C    C 5.1 and MASM 5.1
  2.  
  3. Purpose:    Copies volume label, subdirectory structure and all files
  4.         regardless of attribute type from one disk medium to another.
  5.  
  6. Author:          Gordon Harris
  7.              3349 Humboldt Ave S
  8.              Minneapolis, MN 55408
  9.  
  10.              Comments can be addressed to my
  11.              CompuSurve address: [72611,620]
  12.  
  13.  
  14.  
  15. Description: COPYDISK is an XCOPY like utility which allows you to copy
  16.         an entire disk to a drive of differing type, e.g. copy
  17.         the contents of a 1.2 m floppy to a 1.44 m floppy, etc.
  18.  
  19.         Unlike XCOPY, COPYDISK will copy the volume label from the
  20.         source disk to the target, as well as copying all
  21.         subdirectories and files including hidden, system or read-
  22.         only files and directories.  All files on the target disk
  23.         created by COPYDISK will have identical attributes (dates,
  24.         times, etc) as the files on the source disk.  If the
  25.         source disk is bootable, so will the resulting target disk.
  26.  
  27. Syntax:     The syntax for using COPYDISK is:
  28.  
  29.         COPYDISK sourcedrive: targetdrive: [-n] [-x] [-f]
  30.  
  31.         where "sourcedrive:" and "targetdrive:" are valid dos drives
  32.         and [-n], [-x] and [-f] are optional parameters.
  33.  
  34. Operation:  Given valid parameters, COPYDISK (1) performs a media check
  35.         on the indicated drives, (2) prompts the user for permission
  36.         to delete all existing data from the target drive, (3) copies
  37.         the volume label from the source drive to the target and then
  38.         (4) proceeds to copy all files and directories from the source
  39.         to the target.
  40.  
  41.         COPYDISK will abort if its check of the media type of the
  42.         target disk reveals that it is a fixed disk.  This protects
  43.         you from inadvertently deleting the contents of a hard disk
  44.         either by using an incorrect parameter for the target drive
  45.         or by using a virtual drive name created by ASSIGN or SUBST
  46.         which represents a fixed disk drive or subdirectory on a
  47.         hard disk.
  48.  
  49.         During the media check, COPYDISK installs its own critical
  50.         error handler.  If a error is detected reading either the
  51.         source or target drives, COPYDISK will prompt you to retry
  52.         access to the disk.  If you choose not to retry access to
  53.         the target disk, COPYDISK will prompt you as to whether you
  54.         wish to format the target.
  55.  
  56.         COPYDISK will also abort if the data on the source disk is
  57.         too large to fit on the empty target disk, or if any errors
  58.         occur reading data from the source or writing data to the
  59.         target disks.
  60.  
  61. Optional Parameters:
  62.      -n (no prompt).  This is useful when using COPYDISK in batch
  63.         files.  With the "-n" parameter, COPYDISK will not prompt you
  64.         for permission to delete all data from the target disk.
  65.  
  66.      -x (relaxed media checking).  With this parameter, the target
  67.         disk may be a hard disk and the source data may be larger
  68.         than the capacity of the target disk.
  69.  
  70.      -f (format target automatically if media check failure).  With
  71.         this parameter, the DOS FORMAT.COM command will be spawned
  72.         without prompting if the target disk fails the media check.
  73.