This method moves a path rule up or down in the list of path rules.
Syntax
ISitePaths.ChangeOrder(MoveUp)
Parameters
MoveUp
If True, the path rule is moved up in the list of path rules (crawled or avoided earlier); if False, the path rule is moved down in the list of path rules (crawled or avoided later).
Example
The following example moves the path C:\Tmp up in the list of crawled or avoided path rules for the site Microsoft.com.
Option Explicit
On Error Resume Next
Dim objSearchAdmin, objBuildServer, objCatalogs, objCatalog, objSites, objSite, objPaths
Set objSearchAdmin = CreateObject("Search.SearchAdmin.1")
Set objBuildServer = objSearchAdmin.BuildServer
Set objCatalogs = objBuildServer.BuildCatalogs
Set objCatalog = objCatalogs("KMSampleCatalog2")
Set objSites = objCatalog.objSites
Set objSite = objSites.Item("Microsoft.com")
Set objPaths = objSite.objPaths
objPaths.ChangeOrder "C:\Tmp", True
'Release objects
Set objPaths = Nothing
Set objSite = Nothing
Set objSites = Nothing
Set objCatalog = Nothing
Set objCatalogs = Nothing
Set objBuildServer = Nothing
Set objSearchAdmin = Nothing