Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有谁知道如何使用 VB.NET从文件属性中清除最后修改日期?我在 Google 上查看了很多建议/示例,但重点始终是如何更改最后修改日期。我想要做的是清除(完全清除)任何文件的“修改日期”(这是法律行业的一种常见做法)。
从未修改过的文件的修改日期等于创建日期。
IO.File.SetLastWriteTime(sFile, IO.File.GetCreationTime(sFile))