15 April 2022

Get directory size via Windows command line

PowerShell:

ls -r|measure -sum Length

Invoke via Command Prompt:

PowerShell -NoProfile -Command "ls -r|measure -sum Length"

No comments:

Post a Comment