This method saves a catalog definition.
Syntax
IBuildServer.ExportCatalog(Name, Path)
Parameters
Name
The name of the catalog definition to export.
Path
The full path where the exported catalog definition is saved.
Remarks
By default the Search export operation in both MMC and WebAdmin export catalog definition configuration files with a SBP file extension. Microsoft recommends that you save your catalog definition configuration files with a SBP file extension.
Example
The following example saves the catalog definition to the file MyCatalog.sbp in the directory C:\Backup.
This doesn't seem to work as advertised. See my email dated 12/30/97.
Option Explicit
On Error Resume Next
Dim objSearchAdmin, objBuildServer
Set objSearchAdmin = CreateObject("Search.SearchAdmin.1")
Set objBuildServer = objSearchAdmin.BuildServer
objBuildServer.ExportCatalog "MyCatalog", "C:\Backup\MyCatalog.sbp"
'Release objects
Set objBuildServer = Nothing
Set objSearchAdmin = Nothing
See Also