回复 6# meiszp - @{}#? 2>nul&pause&powershell -c "type -literalpath '%~f0'|out-string|iex"&pause&exit/b
-
- gci -file |where {$_.name -match '\.(mp4|jpg|jpeg)$'} |foreach {
- if($_.basename-match '\d{13}'){
- $niuName=[DateTimeOffset]::FromUnixTimeMilliseconds([int64]$matches[0]).LocalDateTime.ToString('yyyyMMdd-HHmmss')
- rni -LiteralPath ($_.fullname) -NewName ($_.name -replace $matches[0],$niuName)
- }
- }
- 'done'
复制代码
|