How to compare 2 file date time stamps in bat

June 15, 2009 at 11:35:48
Specs: Windows
Hi All,

I've 2 files a.c and b.c
How can I find which one is newer(datetime) among them using either batch file OR at command line

Thanks,
Srini


See More: How to compare 2 file date time stamps in bat

Report •


#1
June 15, 2009 at 12:00:45
"OS: Windows"

As ever, much depends on the OS.


=====================================
If at first you don't succeed, you're about average.

M2


Report •

#2
June 15, 2009 at 13:23:25
Yes, it Windows

Report •

#3
June 15, 2009 at 19:30:51
dir /b /OD test.bat file.txt | more +1

this finds the latest

GNU win32 packages | Gawk


Report •

Related Solutions


Ask Question