Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

An exclude filter may not work as expected when you try to create a CSS project in Commerce Server 2007


View products that this article applies to.

Symptoms

Consider the following scenario:
  • You try to create a Commerce Server Staging (CSS) project in Microsoft Commerce Server 2007.
  • You add an exclude filter at the command prompt.
  • Either the source path or the destination path contains a hyphen (-).
In this scenario, the exclude filter may not work as expected.

↑ Back to the top


Cause

This problem is caused by the hyphen in the source path or in the destination path.

This problem occurs only when you add an exclude filter at the command prompt in Microsoft Commerce Server 2007.

↑ Back to the top


Workaround

To work around this problem, use one of the following methods.

Method 1

Use a backslash (\) to escape any quotation marks ("). If you use a backslash-and-quotation-mark sequence, you must replace this sequence with three backslashes and a quotation mark (\\\").

For example, the following command does not work as expected:
css addproj MSTest01 C:\Temp\CSS-Test01\Source C:\Temp\CSS-Test01\Target /Filter "-ExcludeMe\ "
Instead of using "-ExcludeMe\ " to exclude this folder, you must use "-\"ExcludeMe\\\" " to create the CSS publishing project. Therefore, use the following command:
css addproj MSTest01 C:\Temp\CSS-Test01\Source C:\Temp\CSS-Test01\Target /Filter "-\"ExcludeMe\\\" "

Method 2

Rename the source folder or the destination folder so that the name does not contain a hyphen.

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

↑ Back to the top


Keywords: kbprb, kbcode, kbbug, kbtshoot, KB918851

↑ Back to the top

Article Info
Article ID : 918851
Revision : 2
Created on : 7/31/2006
Published on : 7/31/2006
Exists online : False
Views : 391