I'm looking for a way in Windows to list all files in a given directory and its subdirectories, sorted so that the newest files are on top. Is there any easy way to do this? I'd also settle for a Perl script.
|
If you're still interested in a scripted solution, I've quickly thrown something together which will display files from all directories together:
Files are displayed newest to oldest, showing only the file name. This way you can easily pipe the output of this script to another tool for processing without having to worry about stripping excess output. Usage: |
|||||||||||||
|
|
Like this: |
|||
|
|
If you have cygwin or similar installed then |
|||
|
|
|
In case you're using Everything, just type the path and sort by Date Modified and you will get all files in this folder in that order, regardless the subdirectory. Everything is freeware, a portable version is available. |
|||
|
|
|
If you don't mind coding (though this takes the question into Stack Overflow territory) then there's the The There's also the I should have added that all of this functionality is available via Powershell, so you don't have access to a full IDE. |
|||||
|