xcopy does not copy subdirectories

  • Thread starter Thread starter Steve Cohen
  • Start date Start date
S

Steve Cohen

I enter "xcopy c:\mydocs d:\mydocs /s" and the sub directories do not copy.
This used to work.

Steve
 
Steve said:
I enter "xcopy c:\mydocs d:\mydocs /s" and the sub directories do
not copy. This used to work.

Should still..

What does:

xcopy "c:\mydocs\*.*" "d:\mydocs" /E /C /H /R /Y

do for you?
 
Shenan,

Thanks for the tip. It was the /H which I added and all is OK. For some
reason xcopy didn't go on to subdirectories if it found a hidden or system
file. I had some thumbs.db files that were system files.

Do you know why this is?

Steve
 
This was all due to user error.

All of the sub folders in My Docs were hidden. I don't know how this could
have happened since I created them myself. Oh well, sorry for the stupidity.

Steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top