Compare files by date created

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • mindstitchdr
    Indigo Rose Customer
    • Dec 2004
    • 239

    Compare files by date created

    I need to compare 2 files by their date created. If they are the same a simple dialog.message saying same is all i need. If they are differant a dialog.message saying differant. That is all. Is this possible? If so, could you show me an example?
  • longedge
    Indigo Rose Customer
    • Aug 2003
    • 2498

    #2
    Yes - the File.GetAttributes action (if memory serves me correctly) does this and returns a table with various attributes. I use the .WriteDateISO value to compare two files (local and on a server) before opening a front end to a SQL database locally. If there's a newer version on the server I copy/overwrite the local version before opening it. There is also a .CreationDateISO value (once again - from memory so it may be slightly different to that).

    It works really well.

    Comment

    • longedge
      Indigo Rose Customer
      • Aug 2003
      • 2498

      #3
      Here's a little example using the creation date in ISO format.

      Comment

      Working...
      X