Last active
December 25, 2022 18:34
-
-
Save debuglevel/7dd16b12d252ee6452572f10e0217db9 to your computer and use it in GitHub Desktop.
PowerShell: rename all files of a type to prefix their modification datetime
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 *.pdf | Rename-Item -newname {$_.LastWriteTime.toString("yyyy-MM-dd-HH-mm") + $_.Name } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment