【发布时间】:2009-12-28 15:01:25
【问题描述】:
我尝试运行以下代码:
var top = new DirectoryInfo("C:\\");
foreach(var info in top.GetFileSystemInfos())
System.Console.WriteLine("{0}: {1}", info.Name, info.Attributes);
我得到了以下结果:
$Recycle.Bin:隐藏、系统、目录
ATI:目录
文档和设置:隐藏、系统、目录、ReparsePoint、NotContentIndexed
MSOCache:只读、隐藏、目录、NotContentIndexed
PerfLogs:目录
程序文件:只读、目录
程序文件 (x86):65553
程序数据:73746
恢复:隐藏、系统、目录、NotContentIndexed
系统卷信息:隐藏、系统、目录
用户:只读、目录
窗户:65552
hiberfil.sys:隐藏、系统、存档、NotContentIndexed
pagefile.sys:隐藏、系统、存档
其中大部分都很明显。但是那些以粗体标记的是什么意思?尤其是用于 Program Files 和 Windows 的数字。
【问题讨论】: