How to? exclude a subdirectory when copying


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

Similar threads
Thread starter Title Forum Replies Date
C How to? exclude subfolder ..... Support 2
fpefpe How to? copy / exclude Support 2
MikeBaas How to? SELECT: exclude files / display prompt Support 2
D Exclude extension from filename completion Support 1
old coot LEAVE in a DO /S fileset loop only leaves one subdirectory Support 4
S UNZIP all archives to separate subdirectory Support 10
MickeyF TCC crashing when copying multiple files (now resolved) Support 6
D When copying/moving, appending " (2)" to filename when the target file already exist. Support 7
redwdc Copying files with spaces, commas, etc. Support 5
P Copying files in subdirectories Support 9
S iftp copying pgp files from ftp is not working Support 11
P Copying descript.ion file fails Support 8
JohnQSmith Fixed Copying with regex (several issues) Support 7
rps Documentation Help file revision - Copying hidden DESCRIPT.ION files Support 19
S Copying descriptions in DESCRIPT.ION Support 3
Joe Caverly Copying text of MSGBOX Support 0
M Copying files (NOT file contents) to clipboard from TCC Support 17
P Copying descriptions Support 4
S COPYing attributes Support 3
Charles Dye Difficulty copying DESCRIPT.ION files Support 1
Roedy copying files to DVD or CD Support 3
K Copying and mouse Support 0
CWBillow Windows 7 copying and Take Command Support 5
A GPF when copying large amount of data on busy USB Drive Support 3
p.f.moore Copying Take Command installed folder Support 19

Similar threads