Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2015-02-10
2
Medium Priority
?
143 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 59

Accepted Solution

by:
Bill Prew earned 2000 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 96

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Using dates in 'DOS' batch files has always been tricky as it has no built in ways of extracting date information.  There are many tricks using string manipulation to pull out parts of the %date% variable or output of the date /t command but these r…
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…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

916 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