问题1:- PowerShell "Get-ChildItem -Path 'F:\test' -Force -Recurse -ea SilentlyContinue | ?{$_.LastWriteTime.ToString('yyyy-MM-dd') -gt '2021-03-01' -and $_.PsISContainer -ne $True} | select FullName"
复制代码 问题2:
把 -gt 改成 -lt,表示修改日期在 2021-03-01 之前的文件。
问题3:
把 -gt 改成 -eq,表示修改日期在 2021-03-01 当天的文件。
https://docs.microsoft.com/zh-cn ... view=powershell-5.1 |