【发布时间】:2014-12-09 11:18:53
【问题描述】:
我正在寻找 cmd.exe's 的 powershell 等效项
dir /s /b *foo*.docx
我想为此创建一个别名(或 scriptlet?)。
我找到了How do I do 'dir /s /b' in PowerShell?,但使用这种方法我似乎无法传递*foo*.docx 的参数。
【问题讨论】:
-
gci -recurse -filter *foo*.docx | select -expandproperty fullname -
@arco444 这一定是答案,你应该在别人之前写出来。我测试了
-include只是为了看看,-filter更快。
标签: powershell cmd