outputUnitsProcessed Property
Returns the total number of output records sent to an output format by a query executed
with the ExecuteBatch method.
Read-only property.
Script Syntax
value = objLogQuery.outputUnitsProcessed;
Return Value
An integer value containing the total number of output records sent to an output format by the last query executed with the ExecuteBatch method.
Examples
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
See also:
LogQuery ObjectExecuteBatch Method
inputUnitsProcessed Property
Log Parser COM API Overview
C# Example