Solved

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

Posted on 2015-02-10
2
117 Views
Last Modified: 2015-02-10
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
0
Comment
Question by:savethehumans
2 Comments
 
LVL 52

Accepted Solution

by:
Bill Prew earned 500 total points
ID: 40602124
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:

XCOPY /?

~bp
0
 
LVL 95

Expert Comment

by:Lee W, MVP
ID: 40602194
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
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Being a system administrator some time we require to do things remotely, one of them is installing software. Here I am going to tell you how to install software through wmic (Windows management instrument console). I am not at all saying that this i…
Introduction: Recently, I got a requirement to zip all files individually with batch file script in Windows OS. I don't know much about scripting, but I searched Google and found a lot of examples and websites to complete my task. Finally, I was ab…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now