I would like to calculate the total size of all files in a given directory that fulfil the condition:
- The path of the file (or, equally good, the directory of the file) contains the string
DEV_
The operating system is Windows Server 2012.
I would like to calculate the total size of all files in a given directory that fulfil the condition:
DEV_
The operating system is Windows Server 2012.
Use PowerShell while this folder is the current:
Get-ChildItem * -Filter *DEV_* | Measure-Object -Sum Length