Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

dir /g

Jun
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
 
> 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.
 
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
 
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
 

Similar threads

Back
Top