How do I change file creation time in C#?

2019-01-25 01:50发布

问题:

I'm wondering how I can change file creation time within C#?

回答1:

You can use the following method from System.IO namespace:

File.SetCreationTime(fileName, fileTime);


标签: c# .net file-io