Last active
February 18, 2023 01:49
-
-
Save eugrus/0fbf45d73d856d9d04eebc4b3bd3d437 to your computer and use it in GitHub Desktop.
rename files according to date and time of their last edit in PowerShell
This file contains 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 *.png | Rename-Item -newname {$_.LastWriteTime.toString("yyyy-MM-dd-HH-mm-ss") + ".png"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment