【问题标题】:WQL to find files in a directoryWQL 在目录中查找文件
【发布时间】:2012-07-26 20:52:04
【问题描述】:

如何使用 WMI 查询语言在目录中查找文件?

这是我目前所拥有的:

select * from Cim_DataFile
 where path = "\\\\C:\\Users\\name\\"

查询不返回任何结果。

非常感谢任何帮助。

【问题讨论】:

    标签: wmi wmi-query wql


    【解决方案1】:

    您必须删除Path 属性的驱动器并在Drive 属性中指定该值,因此将您的WQL 语句重写为

    SELECT * from Cim_DataFile where path = "\\Users\\name\\" and Drive="C:"

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-01-12
      • 1970-01-01
      • 1970-01-01
      • 2012-11-12
      相关资源
      最近更新 更多