Get-ChildItem | Rename-Item -NewName {"Summer Fossile - " + $_.CreationTime.ToString("yyyyMMdd") + " - " + $_.name } -whatif
Rename file with date modified in the file name
andrew_oh
21
Reputation points
I would like to rename multiple files with its file date modified. I am able to rename with todays date but can't figure out how to get the file date modified in the file name.
Windows for business | Windows Server | User experience | PowerShell
8,330 questions
Accepted answer
-
MotoX80 36,401 Reputation points
2022-07-22T13:40:28.447+00:00