dir /g

Jun 7, 2008
121
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
 

rconn

Administrator
Staff member
May 14, 2008
11,234
103
> 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.
 
May 20, 2008
3,515
3
Elkridge, MD, USA
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
 
Jun 7, 2008
121
0
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.
Aaahh, thanks, I did not notice that. I will re-look

Stephen Howe