Computing.Net > Forums > Programming > How to compare 2 file date time stamps in bat

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

How to compare 2 file date time stamps in bat

Reply to Message Icon

Name: srini_vk
Date: June 15, 2009 at 11:35:48 Pacific
OS: Windows
Subcategory: Batch
Comment:

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



Sponsored Link
Ads by Google

Response Number 1
Name: Mechanix2Go
Date: June 15, 2009 at 12:00:45 Pacific
Reply:

"OS: Windows"

As ever, much depends on the OS.


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

M2


0

Response Number 2
Name: srini_vk
Date: June 15, 2009 at 13:23:25 Pacific
Reply:

Yes, it Windows


0

Response Number 3
Name: ghostdog
Date: June 15, 2009 at 19:30:51 Pacific
Reply:

dir /b /OD test.bat file.txt | more +1

this finds the latest

GNU win32 packages | Gawk


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: How to compare 2 file date time stamps in bat

How to compare 2 files using awk? www.computing.net/answers/programming/how-to-compare-2-files-using-awk/15598.html

how to compare 2 files in java www.computing.net/answers/programming/how-to-compare-2-files-in-java/19445.html

How to combine 2 assembly files tog www.computing.net/answers/programming/how-to-combine-2-assembly-files-tog/10699.html