Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to know if I can trust the Modified Date attribute of a file, there is any way to make a file seem older than it truly is?

share|improve this question
up vote 9 down vote accepted

No, you cannot trust any of the date/time stamps on a file. It is relatively straightforward to change the timestamps

share|improve this answer
I've deliberately changed the last-modified date on files to keep certain people happy. You definately cannot trust it, at all. – Mark Henderson Jul 6 '09 at 21:33

You can't trust it - there are tools (such as 'touch') which allow you to set such file metadata.

share|improve this answer
touch(1) being a standard command in all Unix/Linux/BSD distributions that I have seen. – grawity Jul 7 '09 at 7:57

You can use robocopy command line which copies the modify date from the original file. Also there are a GUI tool for robocopy.

share|improve this answer
Also only vista supplied robocopy preserves folder dates. – Sergei Jul 7 '09 at 7:35

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.