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
DateDiff()?

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


.



Relevant Pages

  • Re: Comparing and Changing DateLastModified
    ... Michael Harris (MVP) wrote: ... What is the best method for comparing the DateLastModified properties ...
    (microsoft.public.scripting.vbscript)
  • Comparing and Changing DateLastModified
    ... Two related questions: ... What is the best method for comparing the DateLastModified properties ... without shelling out to a utility such as touch.exe? ...
    (microsoft.public.scripting.vbscript)
  • Re: Comparing and Changing DateLastModified
    ... What is the best method for comparing the DateLastModified ... strings in the comparison? ... Michael Harris ... Microsoft MVP Scripting ...
    (microsoft.public.scripting.vbscript)