标签: powershell powershell-v5.0
我需要将一堆文件传递给cmdlet(具体来说是Measure-CharacterFrequency),但是文件分散在子目录中。如果我只是"*.txt",它将仅在顶层目录中获取文件。我也尝试过
Measure-CharacterFrequency
"*.txt"
Measure-CharacterFrequency (Get-ChildItem "*.ps1" -Recurse -Force | Select-Object FullName | Format-List)
但是那也不起作用。如何传递所有文件?