Path Property

This read-only property specifies the path to the log.

Syntax

IGatherLog.Path

Example

The following example displays the path to the current 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 located at " & objLog.Path 

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

See Also

Created, Name, Size


© 1997-1998 Microsoft Corporation. All rights reserved.