Microsoft KB Archive/921487

= Description of how to use Commerce Server Staging (CSS) project filters at a command prompt =

Article ID: 921487

Article Last Modified on 7/25/2006

-

APPLIES TO


 * Microsoft Commerce Server 2007 Developer Edition
 * Microsoft Commerce Server 2007 Enterprise Edition
 * Microsoft Commerce Server 2007 Standard Edition

-





INTRODUCTION
You can use command-line options for Commerce Server Staging (CSS) to automate the content replication process. You can also use a filter switch at a command prompt when you add a CSS project in Microsoft Commerce Server 2007. This article describes how to use CSS project filters at a command prompt.



Syntax for including filters when you add a CSS project by using the css addproj command
To add a CSS project from a command line by using filters, type the following command:

css addproj    |  ] [...] [/filter  ] [globalflags]

Note The globalflags variable includes the following switches:
 * /server 
 * /user  [pass | *]

Filter switches have the following options.

The following is an example of a filter that has switches:

/filter &quot;+text1.txt -*.exe - \ +...\*.jpg&quot;

This filter does the following:
 * Includes the Text1.txt file
 * Excludes all files that end in .exe that exist in the project root directory
 * Excludes the Directory1 directory
 * Includes all *.jpg files in all the directory trees

Syntax for including more than one directory in a filter
To include more than one directory in a filter, type the following command:

css addproj  c:\  c:\  /filter &quot;- \ + \ &quot;

Note Make sure that there is a space character after the last backslash (\) and before the closing quotation marks.

You can also use wildcard characters in directory names. For example, you can exclude the _vti_* directories that are installed with FrontPage Server Extensions from Microsoft. Additionally, you can include all directories that have names that start with myWeb, such as myWeb01. To do this, type the following command:

css addproj  c:\  c:\  /filter &quot;-_vti*\ +myweb*\ &quot;

Syntax for file names and for directory names that have space characters
Space characters in a file name or in a directory name may cause problems in the command line syntax for CSS project filters. To work around these problems, you can use wildcard characters to bypass the space character in the name. For example, you can exclude a subdirectory under the replication root directory that is named My Folder. To do this, type the following command:

css addproj  c:\  c:\  /filter &quot;-my*\ &quot;

Additional query words: css

Keywords: kbhowto kbinfo KB921487

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.