相关疑难解决方法(0)

如何从PowerShell中检索递归目录和文件列表,不包括某些文件和文件夹?

我想编写一个PowerShell脚本,它将递归搜索目录,但排除指定的文件(例如*.log,和myFile.txt),还排除指定的目录及其内容(例如,myDir下面的所有文件和文件夹myDir).

我一直在使用Get-ChildItemCmdLet和Where-ObjectCmdLet,但我似乎无法得到这种确切的行为.

powershell powershell-2.0

27
推荐指数
3
解决办法
10万
查看次数

标签 统计

powershell ×1

powershell-2.0 ×1