Last active
May 25, 2020 18:10
-
-
Save ngollan/0c494ff7f4a035d8ee9d7cc0d1d01423 to your computer and use it in GitHub Desktop.
Rename FFXIV screenshots with ISO 8601 dates
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-ChildItem "$([Environment]::GetFolderPath("MyDocuments"))\My Games\FINAL FANTASY XIV - A Realm Reborn\screenshots" -Filter "ffxiv_*.png" | | |
Foreach-Object { | |
$_.BaseName -match "ffxiv_(?<day>\d\d)(?<month>\d\d)(?<year>\d\d\d\d)_(?<hour>\d\d)(?<minute>\d\d)(?<second>\d\d)(?<suffix>_[^\.]*)?" | |
$m = $Matches | |
Rename-Item -Path $_.FullName -NewName "$($m.year)-$($m.month)-$($m.day) $($m.hour)_$($m.minute)_$($m.second) screenshot$($m.suffix).png" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Square may have added it for people who used PrintScreen for active time events :-D Thanks a lot for the heads up, I only started playing early last year, so I wouldn't have seen it.