读写扩展文件属性(评论等......) [英] Reading and writing extended file attributes (comments etc...)

查看:107
本文介绍了读写扩展文件属性(评论等......)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要读取和写入C#中的png文件的注释部分作为我的应用程序的一部分,所以我可以稍后使用注释的值。我该怎么做?此外,我似乎无法在其属性的详细信息选项卡中找到任何扩展文件属性,无论它们是否为空,我运行Windows 8,Windows 8是否不再像Windows 7那样支持这些属性?谢谢。

I need to read AND write to the comments section of png files in C# as part of my application so I can use the value of the comments for something later. How would I do this? Also, I cannot seem to find any of the extended file attributes on files in the details tab of its properties whether they are empty of not and I am running Windows 8, does Windows 8 not support these attributes any more like Windows 7 did? Thank you.

推荐答案

Google的PNGCS库是一个保持最新的C#工具,用于读取和写入Png文件,对它们执行各种转换,以及读取和撰写元数据:[ ^ ]。该页面上的最后一个代码示例显示将任意注释写入Png文件。



最新版本的PNGCS(4.5)不需要CSharpZip dll。



关于编写扩展文件属性的问题:你一直在做什么现在不起作用?使用DSO?使用taglib-sharp?您是否有机会在Win Store应用程序中遇到此问题?
Google's PNGCS library is a kept-up-to-date C# facility for reading and writing Png files, performing various transformations on them, and reading and writing meta-data: [^]. The last code example on that page shows writing arbitrary comments into a Png file.

The latest version of PNGCS (4.5) does not require the CSharpZip dll.

About the problem with writing extended file properties: what have you been doing that doesn't work now ? Using DSO ? Using taglib-sharp ? Are you by any chance having this issue in a Win Store app ?


这篇关于读写扩展文件属性(评论等......)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆