WHY 当前离线
上校
$arr = Get-ChildItem e:\Test\*.jpg | ?{$_ -is [IO.FileInfo] -and $_.BaseName -match '^\d{15}(\(\d+\))?$'} $arr | sort Length | group{$_.Name.SubString(0, 15)} | ?{$_.Count -gt 1} | %{$_.Group[0..($_.Count-2)]|Remove-Item -Force}复制代码
TOP
PowerShell -c "dir *.jpg|?{$_ -is [IO.FileInfo] -and $_.BaseName -match '^\d{15}(\(\d+\))?$'}|sort Length|group{$_.Name.SubString(0,15)}|?{$_.Count-1}|%%{$_.Group[0..($_.Count-2)]|del -Force}"复制代码
评分人数