我正在寻找一种方法,从命令行查看Office文档的属性(标题,作者,公司等),希望标准和自定义文档。 这样的效用是否存在?
(我的意图是写一个脚本,列出目录层次结构中的文件,并显示有关它们的信息,包括属性。我感兴趣的所有其他信息很容易,我只是不能看到一种方法来获得属性。)
如果您使用Windows, DSOFILE.dll可能会有答案。 这里有一个关于它的讨论
你没有说你的系统正在运行。 如果你可以运行GNU / Linux wv库及其应用程序,那么wvSummary会提供一些你想要的信息?
从本地.doc文件的wvSummary返回的前几行是:
Metadata for Men.doc: Template = "Normal" Security Level = 0 Created = 2009-02-28T17:37:00Z Last Saved by = "Administrator" Revision = "1" Number of Characters = 529 Keywords = "" Subject = "" Generator = "Microsoft Office Word" Last Modified = 2009-02-28T17:47:00Z Creator = "Administrator" Number of Pages = 1 msole:codepage = 1252 Number of Words = 92 Description = ""