CrawlScopeCommandLine

The CrawlScopeCommandLine code sample demonstrates how to define command line options for Crawl Scope Manager (CSM) indexing operations.

This topic contains the following sections.

Requirements

Product Product Version
Windows Windows 7, 8.1, or 10
Windows SDK 7.0 or greater

Downloading the Sample

This sample is available in the following location.

Location Path or URL
GitHub CrawlScopeCommandLine sample

Note

For all versions of Windows, including Windows 7, it is recommended to download the samples directly from GitHub for the most up to date version.

Building the Sample

  1. Open Windows Explorer and navigate to the CrawlScopeCommandLine project directory.

  2. Double-click the icon for the csmcmd.sln file to open the project in Visual Studio.

    Note

    The sln file was created under an older version of Visual Studio, thus upgrading it will be required if you are running Visual Studio 2012 or newer. This will not impact the sample's behavior.

  3. From the Build menu, select Build Solution.

Running the Sample

  1. Navigate to the directory that contains the new executable, using the Command Prompt window or Windows Explorer.
  2. At the command prompt, enter csmcmd.exe, or from Windows Explorer, double-click the icon for csmcmd.exe.

Reference

IEnumSearchRoots

IEnumSearchScopeRules

ISearchCrawlScopeManager

ISearchCrawlScopeManager2

ISearchRoot

ISearchScopeRule

ISearchCatalogManager

ISearchCatalogManager2

ISearchManager

Other Samples

Search Code Samples