Set colLoggedEvents = objWMIService.ExecQuery _
("Select * from Win32_NTLogEvent Where Logfile = 'Application' AND Type <> 'Information' AND TimeGenerated > ' " & dteDate & "' ")
Set colLoggedEvents = objWMIService.ExecQuery _
("Select * from Win32_NTLogEvent Where Logfile = 'System' AND Type <> 'Information' AND TimeGenerated > ' " & dteDate & "' ")
问候:msinfo
答案 0 :(得分:0)
您可以使用括号进行内部比较。
从Win32_NTLogEvent中选择*其中(Logfile ='System'或Logfile ='Application')AND Type&lt;&gt; '信息'和时间生成&gt; '“&amp; dteDate&amp;”'