如何更改文件​​的创建时间在C#中?如何更改、文件、时间

由网友(忙着老去)分享简介:我不知道我该如何在C#中改变文件的创建时间?I'm wondering how I can change file creation time within C#?推荐答案您可以使用下面的从 System.IO 命名空间的方法:You can use the following method from Syst...

我不知道我该如何在C#中改变文件的创建时间?

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

推荐答案

您可以使用下面的从 System.IO 命名空间的方法:

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

File.SetCreationTime(fileName, fileTime);
阅读全文

相关推荐

最新文章