积极答复者
C# 获取文件的扩展属性

问题
答案
-
这个需要调用操作系统的Shell Property API
可以去MSDN代码库下载Windows API Code Pack。这个类库封装了不少Shell API。
The following is signature, not part of post
Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
Visual C++ MVP- 已标记为答案 Paul Zhou 2011年10月31日 6:09
全部回复
-
如果你想获取额外的信息,不妨使用FileInfo类,可以获取创建时间什么的。
如果你有其它意见或私下交流,请直接发送maledong_work@foxmail.com;或者
If you do not have QQ, please open the page and download it and click the image to talk or leave message for me.
下载MSDN桌面工具(Vista,Win7)
下载Technet桌面小工具(Vista,Win7)
慈善点击,点击此处 -
谢谢你, 用FileInfo 是没有办法获取扩展属性,如自定义属性。 请问还有其他办法吗? 谢谢
Healthy
举一个例子——什么是“自定义属性”?
如果你有其它意见或私下交流,请直接发送maledong_work@foxmail.com;或者
If you do not have QQ, please open the page and download it and click the image to talk or leave message for me.
下载MSDN桌面工具(Vista,Win7)
下载Technet桌面小工具(Vista,Win7)
慈善点击,点击此处 -
这个需要调用操作系统的Shell Property API
可以去MSDN代码库下载Windows API Code Pack。这个类库封装了不少Shell API。
The following is signature, not part of post
Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
Visual C++ MVP- 已标记为答案 Paul Zhou 2011年10月31日 6:09