|
Answer» In any version of MS-DOS is it possible to display the total size of a directory without using a third party utility?
ThanksAt a command prompt, type DIR | find "file(s) this will give the number of files and the size in bytes of the current directory. for a different directory enter the path after dir and before the pipe symbol.Thanks 2k, that's what I was looking for and is a great help.
With the addition of /s to your dir instruction I was able to list sub-directory SIZES too.
For any other readers please note that the F in Files must be upper case and a trailing " must be present - so:
dir | find "File(s)" (only tried at the XP command prompt so far)
Thanks again.I'm not the world's GREATEST typist and generally have to PROOF read everything I type. This time I didn't. But you got the point.
|