Sam*_*abu 3 powershell powershell-2.0
我想删除除只读文件以外的文件夹中的所有文件和子文件夹.
如何使用PowerShell做到这一点?
作为参考,这在V3中更容易一些:
Get-ChildItem -Attributes !r | Remove-Item -Recurse -Force -WhatIf
Run Code Online (Sandbox Code Playgroud)
或短(别名)版本:
dir -at !r | ri -r -f -wh
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1546 次 |
| 最近记录: |