1

Is is possible to query multiple WMI sources like you can multiple tables in SQL?

@"SELECT Win32_Process.ExecutablePath, Win32_Process.Handle, Win32_Process.Name, Win32_PerfFormattedData_PerfProc_Process.WorkingSetPrivate, Win32_PerfFormattedData_PerfProc_Process.PercentProcessorTime  FROM Win32_Process, Win32_PerfFormattedData_PerfProc_Process

This didn't work but hopefully you get the idea. I've searched around and I couldn't even find anyone asking this question. I'm guessing it's not possible but I thought I'd try the experts here before giving up.

4

1 回答 1

2

不,你不能。该WQL语言只是 SQL 的一个子集,不支持同时查询多个类。相反,您可以尝试该ASSOCIATORS OF句子,但仅限于某些情况。

于 2013-07-24T23:31:13.273 回答