Created
October 3, 2022 21:48
-
-
Save pranavmishra90/93687431d5c2bdb3490e752cf7316743 to your computer and use it in GitHub Desktop.
PowerShell - Recursively list files and sort by date modified
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
# Use the following snippet of code in a directory to list files, recursively, and then sort them by date modified. | |
gci -file -recurse | select LastWriteTime, Fullname | sort lastwritetime -Descending |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment