dir /g

  • This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
Jun 7, 2008
121
0
#1
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
 

rconn

Administrator
Staff member
May 14, 2008
10,176
86
#2
> 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)?
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
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