What command in Cmd, do I use to copy a folder?

I would like to copy all the contents (some files and a folder) from my USB to C:\Windows\Registration

F:\registration is the USB
Who is Participating?
Bill PrewConnect With a Mentor Commented:
XCOPY can probably get this job done.  Maybe something like:

XCOPY F:\registration C:\Windows\Registration /S /I

You can get additional info at a command prompt by doing:


Lee W, MVPTechnology and Business Process AdvisorCommented:
As a matter of practice, I use XCOPY "x:\Source\*.*" "y:\Destination\Path" /E /C /H /O /V /Y

(That's "ECHO-V-Y" to remember it) and I strongly recommend ALWAYS enclosing the paths in quotes - while not necessary if you don't use spaces in file and folder names, it doesn't hurt and it helps ensure the command executes properly
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.