Returns the total number of output records sent to an output
format by a query executed with the ExecuteBatch
method.
Read-only property.
value = objLogQuery.outputUnitsProcessed;
JScript example:
var oLogQuery = new ActiveXObject("MSUtil.LogQuery"); // Create query text var strQuery = "SELECT TimeGenerated, EventID INTO C:\\output.csv FROM System"; strQuery += " WHERE SourceName = 'Application Popup'"; // Execute query oLogQuery.ExecuteBatch( strQuery ); // Display total number of output records generated WScript.Echo( "Output Records Written: " + oLogQuery.outputUnitsProcessed );VBScript example:
Dim oLogQuery Dim strQuery Set oLogQuery = CreateObject("MSUtil.LogQuery") ' Create query text strQuery = "SELECT TimeGenerated, EventID INTO C:\output.csv FROM System" strQuery = strQuery & " WHERE SourceName = 'Application Popup'" ' Execute query oLogQuery.ExecuteBatch strQuery ' Display total number of output records generated WScript.Echo "Output Records Written: " & oLogQuery.outputUnitsProcessed
© 2004 Microsoft Corporation. All rights reserved.