Creates log files of all incoming text to the players game client. Log files are named per-character and date they are written to for ease of management.
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

$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}