need a hierarchical date last mod on Windows

I have a directory tree that goes 5-6 levels deep with folders containing a couple of hundred files each.  In short, below the top level folder I may have 100,000 files.

This is Windows 2003.

I need to find the age of the youngest file under this hierarchy.  In other words the date of the most recent file.

How can I do this and get a simple answer that shows on the same screen as the command window where I issue the command?  In other words, I don't want to actually get the date on all these and throw them into Excel and sort.

These machines don't have perl or anything non-Windows.
LVL 1
Gene KlamerusTechnical ArchitectAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Onn LightSAP Technical ConsultantCommented:
Dear klamerus

Keeping things simple considering your directory path is "D:\Mydir", executing the below in windows command prompt will give you the desired result.

DIR  D:\MyDir /S /O-D /P /A-D

Open in new window


/S is for  Displaying files in specified directory and all subdirectories.
/O-D  is for Ordering files by date in descending order (newest first)
/P is for pausing for each page (use Ctrl+C to terminate the result)
/A-D is for displaying only files and not folders

Thanks and Regards
onn
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Legacy OS

From novice to tech pro — start learning today.