Link to home
Start Free TrialLog in
Avatar of vhegde1
vhegde1

asked on

oldest file in the directory

How can I find the oldest file in the directory using batch commands?
ASKER CERTIFIED SOLUTION
Avatar of jvuz
jvuz
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of A Syscokid
A Syscokid

Hi vhegde1,

dir /O:D will list files in date order, oldest first.

Cheers!