rid*_*ous 8 windows metadata command-line windows-10
我正在寻找一种在 Windows 10 和 11 上使用命令行File description从文件的元数据中读取字段的方法。
许多其他字段的值可以使用wmic获得,如该问题的答案中所述。
但似乎没有办法获得File description使用该方法显示的值。例如,对于 windows explorer.exe,Win11 中显示的属性可能如下所示
但所有wmic显示的是文件的完整路径:
C:\>wmic datafile where Name="C:\\windows\\explorer.exe" get Description
Description
C:\windows\explorer.exe
Run Code Online (Sandbox Code Playgroud)
有没有办法获取 explorer.exe 对话框中显示的每个字段,并使用命令行获取与此处显示的相同的值?
您可以使用Powershell的Get-Item来获取属性:
(Get-Item C:\Windows\Explorer.exe).VersionInfo.FileDescription
结果:
Windows Explorer
| 归档时间: |
|
| 查看次数: |
1589 次 |
| 最近记录: |