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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top