Solved

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

Posted on 2015-02-10
2
115 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 51

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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

One of my most closely kept secrets is revealed in this discussion How to output text on the same line This question was recently posted in EE by Simon336697 (http://www.experts-exchange.com/Programming/Languages/Scripting/Shell/Batch/Q_2459…
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…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

743 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

14 Experts available now in Live!

Get 1:1 Help Now