如何删除c#中文件夹的时间戳? [英] How to remove the time stamp of a folder in c#?
本文介绍了如何删除c#中文件夹的时间戳?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何删除c#中文件夹的时间戳?
How to remove the time stamp of a folder in c#?
推荐答案
你不能。文件夹将始终具有某种类型的时间戳 - 您可以获得的最接近的是使用 Directory.SetCreationTime [ ^ ]和 Directory.SetLastWriteTime [ ^ ]
You can't. A folder will always have a timestamp of some kind - the closest you can get is to reset the creation and modification stamps to a specific value using Directory.SetCreationTime[^] and Directory.SetLastWriteTime[^]
你可以' t删除时间戳。您只能将它们更改为有效的日期/时间值。
You can't remove the time stamps. You can only change them to them to valid date/time values.
这篇关于如何删除c#中文件夹的时间戳?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文