windows xp下,用鼠标右键单击某个文件的属性,属性对话框中有个文件摘要页,信息包括备注、类别等,请问如何通过C#编程获取这个页的属性值?
FileInfo和File都没有直接获得这些信息的方法或属性。

解决方案 »

  1.   

    FileInfo fiTemp;
    string lstr=fiTemp.Attributes.ToString().Replace("Archive","存档").Replace("Compressed","压缩").Replace("Device","保留").Replace("Directory","目录").Replace("Encrypted","加密").Replace("Hidden","隐藏").Replace("Normal","正常").Replace("NotContentIndexed","非索引").Replace("Offline","脱机").Replace("ReadOnly","只读").Replace("ReparsePoint","重新分析点").Replace("SparseFile","稀疏").Replace("System","系统").Replace("Temporary","临时");
      

  2.   

    naturalth(Study English) 
    是把文件特性全部转化为字符串并用中文代替
    你可以从字符中得到各种属性