Solved

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

Posted on 2015-02-10
2
123 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 55

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 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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

The following is a collection of cases for strange behaviour when using advanced techniques in DOS batch files. You should have some basic experience in batch "programming", as I'm assuming some knowledge and not further explain the basics. For some…
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…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

728 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