2

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?

Jader Dias
  • 4,705
  • 19
  • 50
  • 51

3 Answers3

9

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

Izzy
  • 8,224
  • 2
  • 31
  • 35
  • 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 06 '09 at 21:33
2

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

http://www.mkssoftware.com/docs/man1/touch.1.asp

Moo
  • 2,244
  • 21
  • 23
0

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

FerranB
  • 1,372
  • 2
  • 18
  • 28