Jllin

Powershell获取某个目录某些后缀的文件
获取某个目录某些后缀的文件(Get-ChildItem -Path D:\dir -Recurse -ErrorA...
扫描右侧二维码阅读全文
22
2018/10

Powershell获取某个目录某些后缀的文件

获取某个目录某些后缀的文件

(Get-ChildItem -Path D:\dir -Recurse -ErrorAction SilentlyContinue|Where-Object { $_.BaseName -match "{0:yyyyMMdd}" -f (get-date) -and $_.Name -match "\w.xml$|\w.txt$"}).count

Last modification:October 22nd, 2018 at 11:30 am
If you think my article is useful to you, please feel free to appreciate

Leave a Comment