XCOPY: Exclude .CS and not .CSS

Add the following to your exclude text file:
.cs\
Example:

From the command line...
xcopy c:\from.path c:\to.path /D /E /Y /EXCLUDE:exclude.txt
With the following exclude.txt file (relative to the working directory):
.config
.sln
.suo
.csproj
.vbproj
.cs\
.vb
.pdb
.refresh
Note: I know robocopy exists, I just haven't messed with it.
Note: "XCOPY /D /E /Y" copies all files and directories recursively without prompting

1 comments:

Paulo Gonçalves said...

thanks! it works with cs\