You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
4 lines
240 B
4 lines
240 B
3 years ago
|
$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}
|