如何以编程方式设置文件标签 [英] How Do I Programmatically Set a File Tag

查看:157
本文介绍了如何以编程方式设置文件标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Windows资源管理器查看文件时,可以选择设置标签,类别或其他属性。对于JPEG,一组不同的属性(包括标签)是选项。我希望能够以编程方式设置这些。



如何使用Delphi(我有Delphi 2010 Pro)以编程方式设置文件标签和其他文件属性? / p>

解决方案

JPEG文件中的标签存储为IPTC关键字。有几个库可以读取和写入这些,如果这就是你要求的。

资源管理器显示不同的文件类型不同的列,因为它知道这些文件类型支持这些额外的列。您可以定义shell插件来支持您自己的文件类型的自定义列信息。 MSDN提供了一个概述。


When using Windows Explorer to view files, I'm given the option to set a "tag", "category", or other attributes. For a JPEG a different set of attributes (including "tag") are options. I'd like to be able to set these programmatically.

How do I programmatically set a file tag and other file attributes using Delphi (I have Delphi 2010 Pro)?

解决方案

Tags in JPEG files are stored as IPTC keywords. There are a few libraries available for reading and writing those, if that's what you're asking for.

Explorer shows different columns for different file types because it knows that those file types support those extra columns. You can define shell plug-ins to support custom column information for your own file types. MSDN provides an overview.

这篇关于如何以编程方式设置文件标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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