What I am trying to do is copy an empty directory located in the root of a drive to another empty directory located in the root of the same drive as the source.

Eg. xcopy C:\example2 C:\example /E /S /T /I

The operation ends with zero files copied and no new directory "example2" listed in the target directory. What am I doing wrong? Can this even be done on the command line through xcopy in DOS?

I am assuming at this point that the target directory must be manually created before the xcopy operation is called.

New contributor
Robert is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
  • The options /s and /t are normally mutually exclusive: /s means copy directories and files, while /t means create the directory structure without copying files. Try again with /e and the copy option you want. Also, try putting /e after the copy option. – AFH Dec 5 at 22:17

Your Answer

Robert is a new contributor. Be nice, and check out our Code of Conduct.

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.