SS 3.0 - CRS: Cannot Filter a Folder by Using a Command Prompt if the Source Path Contains a Hyphen (-) (320105)



The information in this article applies to:

  • Microsoft Site Server 3.0

This article was previously published under Q320105

SYMPTOMS

When you try to create a Content Replication System (CRS) project from a command prompt and you add an exclude filter, if either the source or the destination path contains a hyphen (-), the filter may not work as expected.

CAUSE

This behavior is caused by the hyphen in the source path or the destination path (or both). The command-line parsing in CRS for filters does not perform some string manipulation that occurs when the filters are added through the Microsoft Management Console (MMC) snap-in.

WORKAROUND

To work around this behavior, use either of the following methods:
  • Rename the source or destination folder so that the name does not contain a hyphen (-). -or-

  • Use a backslash (\) to escape any quotation mark ("). If you use a backslash + quotation mark sequence (for example, the \ " in "-ExcludeMe\ "), you must replace it with three backslashes and a quotation mark (\\\"). For example, the following does not work as expected:
    crs addproj MSTest01 C:\Temp\CRS-Test01\Source C:\Temp\CRS-Test01\Target /Filter "-ExcludeMe\ "
    Instead of using "-ExcludeMe\ " to exclude this folder, you must use "-\"ExcludeMe\\\" " to create a CRS publishing project, as follows:
    crs addproj MSTest01 C:\Temp\CRS-Test01\Source C:\Temp\CRS-Test01\Target /Filter "-\"ExcludeMe\\\" "
    					

Modification Type:MajorLast Reviewed:4/3/2002
Keywords:kbprb KB320105 kbAudDeveloper