Re: Comparing and Changing DateLastModified

JJ wrote:
Two related questions:

What is the best method for comparing the DateLastModified properties
of two files, so that you can tell which is newer? Just use

Yes, use DateDiff or simple comparison...

Can you change a file's DateLastModified timestamp directly from vbs
without shelling out to a utility such as touch.exe?

No, DateLastModified is a read only property in the FSO object model.
You'll need to use an external utility...

Michael Harris
Microsoft MVP Scripting