URL Property

This read-only property specifies the URL for the Web page.

Syntax

IStartPage.URL

Example

The following example displays the URL for the Web pages for the KMSampleCatalog2 catalog definition.

Option Explicit 
On Error Resume Next

Dim objSearchAdmin, objBuildServer, objCatalogs, objCatalog, objStartPages, objStartPage 

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

Wscript.Echo objCatalog.Name & " crawls the following For Web pages:" 

For Each objStartPage in objStartPages
  Wscript.Echo "  " & objStartPage.URL 
Next

'Release objects
Set objStartPage  = Nothing 
Set objStartPages = Nothing 
Set objCatalog    = Nothing 
Set objCatalogs   = Nothing 
Set objBuildServer   = Nothing 
Set objSearchAdmin   = Nothing 
 

See Also

EnumerationDepth, FollowDirectories, HostDepth


© 1997-1998 Microsoft Corporation. All rights reserved.