PowerShell遍历文件、文件夹的方法

需要清理某个目录下的子文件夹下的*.Log 文件

Get-ChildItem C:\inetpub\logs\LogFiles\ -recurse *.log |Remove-Item -Force

posted @ 2020-04-25 17:27  别再闹了  阅读(1995)  评论(0)    收藏  举报