How to? exclude a subdirectory when copying

samintz

Scott Mintz
May 20, 2008
1,555
26
Solon, OH, USA
How do I structure a file exclusion to exclude a subdirectory when copying a group of subdirectories.
For example:
Code:
Top
├── S1
├── S2
├── S3
└── S4
This will copy the whole tree:
Code:
copy /s Top\ NewTop\
But if I want to exclude S2, how would I do it?
This doesn't work:
Code:
copy /s /[!Top\S2\*] Top\ NewTop\

-Scott
 

Similar threads