向任何文件添加自定义/新属性,无论类型和扩展名如何,例如设置“作者”;在 .txt 文件上

发布于 2024-08-28 16:38:20 字数 317 浏览 0 评论 0原文

我希望能够向文件添加属性和标签 (特别是 Windows 7 中的电子书文件和电子书相关属性,但有兴趣尽可能多地使用操作系统)

例如,Example.txt、Example.doc 或 Example.epub 都应该存储和携带“作者”、“出版日期”等属性'、'标签'等......

属性应与文件本身一起存储。这样,如果它转移到另一个系统,它会保留属性(即使我需要安装“我的应用程序”以在另一台计算机上支持此功能)

如何使用 .net(首选)以及哪些文件系统概念来实现此 功能我应该学会理解底层概念和限制才能实现此功能吗?

任何应用程序已经这样做了?谢谢

I want the ability add properties and tags to a file
(specifically ebook files and ebook related properties in Windows 7 but interested to go so for as many OSes as possible)

For e.g. Example.txt or Example.doc or Example.epub should all store and carry properties like 'Author', 'Publication date', 'Tags' etc..

the properties should be stored with the file itself. Such that if it is transferred to another system it retains the properties (even if i need to install 'my app' to support this function on the other machine)

How do I make this possible using .net (preferred) and what file system concepts should I learn to understand the underlying concepts and limitations to be able to implement this feature?

Any application that already does this? Thank you

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

顾北清歌寒 2024-09-04 16:38:21

您可以使用 Microsoft 的 DSOFile,但仅适用于 NTFS。

http://blog.rodhowarth.com/2008 /06/如何设置自定义属性文件.html

You can use DSOFile from Microsoft, but only works with NTFS.

http://blog.rodhowarth.com/2008/06/how-to-set-custom-attributes-file.html

听,心雨的声音 2024-09-04 16:38:20

你的选择是:

  • 与你的宗教版本的撒旦签订契约。
  • NTFS 流,但限制复制到任何非文件流支持文件系统 (FAT/FAT32) 将删除元信息。
  • 坚持使用内置元信息的文件。
  • 将元信息存储在单独的文件中,并实现大量 shell 扩展来监视复制操作并在用户复制 .fileinfo 文件时重新同步它们。

Your options are:

  • Make a pact with your religions version of Satan.
  • NTFS streams, with the restriction that copying to any non file stream supporting file system (FAT/FAT32) will strip the meta info.
  • Stick to files that have the meta info built in.
  • Store the meta info in a separate file and implement a massive array of shell extensions to monitor copy operations and re-sync the .fileinfo files when the user copies them.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文