Size Property

This read-only property specifies the size, in bytes, of the log.

Syntax

IGatherLog.Size

Example

The following example displays the size of the current gatherer log.

Option Explicit 
On Error Resume Next

Dim objSearchAdmin, objBuildServer, objCatalogs, objCatalog, objLogs, objLog 

Set objSearchAdmin  = CreateObject("Search.SearchAdmin.1")
Set objBuildServer  = objSearchAdmin.BuildServer
Set objCatalogs  = objBuildServer.BuildCatalogs 
Set objCatalog   = objCatalogs("KMSampleCatalog2")
Set objLogs      = objCatalog.objLogs
Set objLog       = objLogs.CurrentLog

Wscript.Echo "The current gatherer log is " & objLog.Size & " bytes." 

'Release objects
Set objLog      = Nothing 
Set objLogs     = Nothing 
Set objCatalog  = Nothing 
Set objCatalogs = Nothing 
Set objBuildServer = Nothing 
Set objSearchAdmin = Nothing 
 

See Also

Created, Name, Path


© 1997-1998 Microsoft Corporation. All rights reserved.