获取使用批处理文件文件属性 [英] Getting file properties using a batch file

查看:127
本文介绍了获取使用批处理文件文件属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有可能获得使用批处理文件所选文件的属性。我只找到一个winbatch的例子,这是能够做到这一点。任何建议都欢迎。谢谢

I was wondering if it is possible to get the properties of selected files using a batch file. I only found a winbatch example that was able to do this. Any suggestions are welcome. Thanks

推荐答案

有关标准Windows文件属性,使用 WMIC DATAFILE

For standard Windows file properties, use WMIC DATAFILE.

某些文件格式(在ID3头的例子.MP3)具有众所周知的特性。 Eventhough他们中的一些可能会被浏览器显示,并不是所有的人都可以通过WMIC数据文件。

Some file formats (for example .mp3 in the ID3 headers) have well known properties. Eventhough some of them might be shown by Explorer, not all of them are available through WMIC DATAFILE.

最后许多其他文件属性存储不容易(甚至是可能的),外部访问。

And finally many other document properties in custom file formats are stored without easy (or even possible at all) external access.

这篇关于获取使用批处理文件文件属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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