Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

How to? exclude a subdirectory when copying

samintz

Scott Mintz
May
1,582
27
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

Back
Top