atom0s
4 years ago
2 changed files with 5 additions and 1 deletions
@ -0,0 +1,4 @@
@@ -0,0 +1,4 @@
|
||||
$Search ='^(?<Name>.+)_(?<Month>\d\d).(?<Day>\d\d).(?<Year>\d\d\d\d).(?<Ext>.*)$' |
||||
$Replace ='${Name}_${Year}.${Month}.${Day}.${Ext}' |
||||
|
||||
Get-ChildItem | where {$_.name -match $Search} | Rename-Item -NewName {$_.name -replace $Search,$Replace} |
Loading…
Reference in new issue