2017-02-20 54 views

回答

3
Get-ChildItem "yourpath" -file -recurse | where {-not $_.extension} | Remove-Item -WhatIf 

注意:刪除應用行動-whatif。 -file將只列出文件而不是文件夾

get-childitem中使用include將限制範圍僅限於該擴展名。