I want to use the Windows command line to calculate the size of all the files in a folder and subfolder. I would normally do this by right-clicking on the folder and clicking "Properties" but I want to be able to do it on the command line.
Which command can I use?
Answer
You will want to use dir /a/s
so that it includes every file, including system and hidden files. This will give you the total size you desire.
No comments:
Post a Comment