Touch

  • Thread starter Thread starter Baz
  • Start date Start date
B

Baz

Hi All,

I'm wondering how way in C# to alter a file's attributes? I'd like to
be able to change the created date, etc.

Thanks in advance,

Barry.
 
Baz,

You can get the FileInfo instance for the file (by passing the path to
the constructor). Once you do that, you can change the properties by
setting the CreationTime property.

Hope this helps.
 
Back
Top