如何更改文件的创建时间在C#中? [英] How do I change file creation time in C#?
本文介绍了如何更改文件的创建时间在C#中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我不知道我该如何在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);
这篇关于如何更改文件的创建时间在C#中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文