“修改日期"规则Windows 资源管理器中的文件夹 [英] Rules for "Date Modified" of folders in Windows Explorer
问题描述
Windows 资源管理器如何确定文件夹的修改日期"字段?[旁白:我知道这是从特定于浏览器的角度提出的问题,但该行为可能对编码搜索/排序类型的活动有用]
How does Windows Explorer determine the "Date Modified" field for folders? [Aside: I know this is asking from an explorer-specific perspective, but the behaviour could be useful to coding search/sort type activities]
是否在任何地方都有明确的描述 - 搜索 Microsoft、MSDN、Google 和堆栈溢出失败.
Is there a definitive description of this anywhere - searches of Microsoft, MSDN, Google & Stack Overflow have been unsuccessful.
个人实验似乎表明在文件夹树中:
Personal experiments seem to suggest that in a tree of folders:
- 在文件夹中添加/删除文件夹/文件时,包含文件夹的修改日期会更新.
- 当文件内容被修改时,包含的文件夹不受影响
但是,我正在查看一些似乎不符合这些基本规则的目录 - 沿着我拥有的树(DD/MM/YYYY 格式的日期)运行:
However, I'm looking at some directories that don't seem to conform to these basic rules - running down the tree I have (dates in DD/MM/YYYY format):
folder (date created: 2/2/2006, date modified: 2/3/2006)
folder (date created: 2/2/2006, date modified: 2/3/2006)
folder (date created: 2/2/2006, date modified: 1/6/2009)
file (date created: 27/3/2009, date modified: 2/2/2006)
推荐答案
这不是特定于资源管理器的,这是与 NTFS 相关的.
This is not explorer specific, this is NTFS-related.
请参阅http://support.microsoft.com/kb/299648 https://web.archive.org/web/20080219020154/http://support.microsoft.com/kb/299648 一些规则.
注意:修改时间可以通过文件系统选项禁用,所以你不应该依赖它.任何建议的可靠方法将不胜感激.
Note: Modified time can be disabled with filesystem option, so you should never rely on it. Any suggested reliable methods would be appreciated.
这篇关于“修改日期"规则Windows 资源管理器中的文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!