且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何编辑文件夹/文件的修改日期?

更新时间:2023-01-29 19:28:46

您可以为此使用以下代码

You can use following code for that

//Change the file created time.
File.SetCreationTime(path, dtCreation);
//Change the file modified time.
File.SetLastWriteTime(path, dtModified);