home *** CD-ROM | disk | FTP | other *** search
/ Hall of Fame / HallofFameCDROM.cdr / pcmag / size.lzh / SIZE.DOC < prev   
Text File  |  1988-11-24  |  2KB  |  47 lines

  1.           SIZE (and ATSIZE)                          Art Merrill
  2.           ______________________________________________________
  3.  
  4.           Purpose:  Calculates the storage requirements of a file
  5.                     or group of files, based on the number of DOS
  6.                     clusters necessary to make floppy disk and
  7.                     hard disk copies.
  8.  
  9.           Format:   SIZE [d:]     (all files, default directory)
  10.                        or
  11.                     SIZE [d:][path]filename[.ext]
  12.  
  13.           Remarks:  DOS stores files in fixed-length allocation
  14.                     units called "clusters."  For floppy disks,
  15.                     the cluster size is 1024 bytes (two 512-byte
  16.                     sectors); for the PC and XT 10-Mb hard disk
  17.                     the cluster size is 4084 bytes.  On such a
  18.                     hard disk, whether a file is one byte or 4Kb
  19.                     in actual length (as reported by DIR), it
  20.                     requires the same amount (one cluster) of
  21.                     storage space.  The PC AT's 20-Mb hard disk
  22.                     is less wasteful in handling small files;
  23.                     its minimum set-aside (cluster size) is 2048
  24.                     bytes.  AT users should use ATSIZE.COM.
  25.  
  26.                     Entered without parameters, SIZE (or ATSIZE)
  27.                     returns the number of bytes used by all files
  28.                     in the current directory, the amount of space
  29.                     required to copy them to a standard (360K)
  30.                     floppy disk, and the amount of space required
  31.                     for hard disk storage.
  32.  
  33.                     Entering B:SIZE returns the same information
  34.                     for a disk in drive B:.  Pathnames and
  35.                     wildcards are supported, so you could enter
  36.  
  37.                          SIZE \PROG\*.COM
  38.  
  39.                     to learn the number of .COM files, their
  40.                     total size and storage requirements,
  41.                     contained in your \PROG subdirectory.
  42.  
  43.                     Notes:
  44.  
  45.                     1.   Requires DOS 2.0 or later.
  46.  
  47.