返回列表 发帖
来了,没有dir for del   
  1. powershell -c "ls |%{if($_.Name -eq '1.txt' -or $_.Name -eq '2.log' -or $_.Name -match 'aabb'){}else{Remove-Item $_}}"
复制代码

TOP

是只要纯批的?就判断3个条件而已,or一下就行。
19  20 的不简洁吗

TOP

返回列表