Hello!
Here again in search for some help. I really can't wrap my head around that.
Is there a way to display only the latest modified file in each subfolder?
Let's say I have:
"C:\folder1\" which has 50 subfolders (sub1,sub2,sub3,etc...), and in each of these there are hundreds of files. I'd like to find the latest modified file for each subfolder.
Is there a way to achieve this?
Any help would be really appreciated.
Thank you
How to display only latest/most recent file in each subfolder?
Re: How to display only latest/most recent file in each subfolder?
Long story short: No. You will have to write a script to accomplish that.
Re: How to display only latest/most recent file in each subfolder?
You might see if Nirsoft's FolderTimeUpdate can do something for you.
You can run it in simulation mode (so no updating occurs) & it should be able to list every directory & what its' last modified (file) time would be.
It would not show the files themselves, so this might not work for you?
And, you can also run it from a command-line.
You can run it in simulation mode (so no updating occurs) & it should be able to list every directory & what its' last modified (file) time would be.
It would not show the files themselves, so this might not work for you?
And, you can also run it from a command-line.
Re: How to display only latest/most recent file in each subfolder?
I'm looking into a way to do this...
In the Everything 1.5 alpha, the closest Everything current has is to sort by Path Ascending and then Date Modified Descending.
An option to 'find one of' items is on my TODO list (similar to the find dupes, the theory is you would right click the path column header and click 'find one of')
In the Everything 1.5 alpha, the closest Everything current has is to sort by Path Ascending and then Date Modified Descending.
An option to 'find one of' items is on my TODO list (similar to the find dupes, the theory is you would right click the path column header and click 'find one of')
Re: How to display only latest/most recent file in each subfolder?
With ES.exe and a little CMD script:
(untested; just to give some inspireation)
Code: Select all
@echo off
(for /d %%x in ("c:\some folder\*") do ( ES.exe file: parent:"%%x\" -sort-dm-descending count:1 )) > "%temp%\latest.txt"
"c:\path to\Everything.exe" -search-file-list "%temp%\latest.txt"