I need to get the size of a Directory - recursive -. I Have to do this every month so I want to make a powershell script to doit, Any Help?
|
feedback
|
|
I asked the same question in stackoverflow and I get this excelent answer:
This actually produces a bit of a summary object which ill include the Count of items. You can just grab the Sum property though and that will be the sum of the lengths $sum = (Get-DirectorySize "Some\File\Path").Sum Thanks JaredPad | |||
|
feedback
|