1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

dir /g

Discussion in 'Support' started by Stephen Howe, Jan 25, 2010.

  1. Stephen Howe

    Joined:
    Jun 7, 2008
    Messages:
    121
    Likes Received:
    0
    Hi

    Should I expect that the total bytes after displaying files should be the sum of all the allocated sizes (with /g) rather than the sum of all the sizes (without /g)?

    Thanks

    Stephen Howe
     
  2. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,870
    Likes Received:
    83
    No. The summary line already has both the total bytes and the allocated
    bytes. There wouldn't be any point in /G transforming that into displaying
    the total allocated bytes twice.
     
  3. Steve Fabian

    Joined:
    May 20, 2008
    Messages:
    3,520
    Likes Received:
    4
    Stephen Howe wrote:
    | Should I expect that the total bytes after displaying files should
    | be the sum of all the allocated sizes (with /g) rather than the sum
    | of all the sizes (without /g)?

    Yes - but only for a single directory which contains no subdirectories. I am
    not aware of any method in FAT or FAT32 file system or in NTFS to determine
    the space used by directory files (nor junctions or symbolic links), which
    increase space actually allocated to a directory. Also, if there are hard
    linked files, the allocation is reduced.
    --
    Steve
     
  4. Stephen Howe

    Joined:
    Jun 7, 2008
    Messages:
    121
    Likes Received:
    0
    Aaahh, thanks, I did not notice that. I will re-look

    Stephen Howe
     

Share This Page