3 ms·
And you just built du with a single line of PowerShell. Also, you demonstrated the full syntax. The short form would be (leveraging aliases, positional paramete
by useerup 11y ago
And you just built du with a single line of PowerShell.
Also, you demonstrated the full syntax. The short form would be (leveraging aliases, positional parameters and unambiguous short parameter names):
For du:
ls C:\Windows\ | measure length -sum
For df:
gwmi win32_logicaldisk