I want to copy the directory itself, not only the contents.
For example I have
C:\DirA\SubDirA\FileA
I want to copy DirA into DirB so that I have
C:\DirB\DirA\SubDirA\FileA
Here's what I've tried
copy C:\DirA C:\DirB
xcopy C:\DirA C:\DirB /e /s
But whatever I try to do, DirA gets left out
C:\DirB\SubDirA\FileA
Note: I have a list of directories I want to copy, so I don't know the directory name beforehand and I can't afford to run a heavyweight program like robocopy 1,000 times.