inputUnitsProcessed Property
Returns the total number of input records processed by a query executed with the
ExecuteBatch method.
Read-only property.
Script Syntax
value = objLogQuery.inputUnitsProcessed;
Return Value
An integer value containing the total number of input records processed by the last query executed with the ExecuteBatch method.
Remarks
- When a query is executed with the Execute method, this property returns zero. In these cases, use the inputUnitsProcessed property of the LogRecordSet object.
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 input records processed WScript.Echo( "Input Records Processed: " + oLogQuery.inputUnitsProcessed );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 input records processed WScript.Echo "Input Records Processed: " & oLogQuery.inputUnitsProcessed
See also:
LogQuery ObjectExecuteBatch Method
outputUnitsProcessed Property
Log Parser COM API Overview
C# Example