Codessentials

  • Increase font size
  • Default font size
  • Decrease font size
Home Coding tips .Net Change creation time of file

Change creation time of file

Changing the creation time of a file is quite easy to achief:

Public Function setTime(ByVal filename As String, ByVal newDateTime As Date) As Boolean
If IO.File.Exists(filename) Then
IO.File.SetCreationTime(filename, newDateTime)
IO.File.SetLastWriteTime(filename, newDateTime)
IO.File.SetLastAccessTime(filename, newDateTime)
Return True
Else
Return False
End If
End Function
 

Bookmark

AddThis Social Bookmark Button

Related Articles


Newsflash

Yadis! Backup 1.9.8 is released!

See the new features right here!

Download this version here!