| @echo off | | powershell -version 2.0 -c "dir -Recurse | Where-Object {$_.Attributes.ToString() -eq 'Directory'} | Sort-Object {$_.FullName.Split('\').Count} -Descending | foreach {if ($_.Name -match '\d\.\d'){Rename-Item $_.FullName ($_.Name -replace ('(?<=\d)\.(?=\d)','-'))}}" | | pause&exitCOPY |
有点长 |