Jump to content
Sign in to follow this  
gcue

compare two files: which is newer?

Recommended Posts

gcue

ok i know it would probably have to do with FileGetTime. but then how do you compare both values and evaluate which is newer?

Share this post


Link to post
Share on other sites
Glyph

Put them into seperate variables, and compare!


tolle indicium

Share this post


Link to post
Share on other sites
rasim

gcue

Try this:

$FileTime1 = FileGetTime("c:\pagefile.sys", 1, 1)
$FileTime2 = FileGetTime("c:\boot.ini", 1, 1)

If $FileTime1 > $FileTime2 Then MsgBox(0, "Info", '"c:\pagefile.sys" newest than "c:\boot.ini"')

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×