This method restores a catalog definition.
Syntax
IBuildServer.ImportCatalog(Name, Path)
Parameters
Name
The name of the catalog definition to import.
Path
The full pathname to where the imported catalog definition is stored.
Remarks
By default, the Search import operation in both MMC and WebAdmin import catalog definition configuration files with a SBP file extension.
Example
The following example imports the catalog MyCatalog.sbp from the directory C:\Backup.
Option Explicit
On Error Resume Next
Dim objSearchAdmin, objBuildServer
Set objSearchAdmin = CreateObject("Search.SearchAdmin.1")
Set objBuildServer = objSearchAdmin.BuildServer
objBuildServer.ImportCatalog "MyCatalog", "C:\Backup\MyCatalog.sbp"
...
'Release objects
Set objBuildServer = Nothing
Set objSearchAdmin = Nothing
See Also