3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Basics of Batch Files

Step 3COPY and XCOPY

COPY and XCOPY
COPY and XCOPY do exactly what you think. They Copy things! Yay!

The COPY command is used for copying files.

COPY "FILE PATH" "DESTINATION PATH"

I.E.

Copy "C:\test.txt" "C:\Test\test.txt"

The above command will copy the test.txt file from the C:\ to the C:\Test folder.

The XCOPY command will copy folders themselves in the same manner as COPY above.

I.E.

XCOPY "C:\Test" "C:\Test\Test Copy"

The above command will copy the Test folder to a Test Copy folder. However, the folder copy does not include subfolders unless you add the command /S to the end.
Also, if the destination folder hasn't already been created yet, it will ask whether it is a File or a Directory. Select Directory.

Simple yes?
« Previous StepDownload PDFView All StepsNext Step »
2 comments
Jul 21, 2007. 6:03 AMdragovian says:
XCOPY "C:\Test" "C:\Test\Test Copy" The above command will copy the Test folder to a Test Copy folder. However, the folder copy does not include subfolders unless you add the command /S to the end. can you give a quick example of how to use the /S command ? how do we place it , ...

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
22
Followers
5
Author:Neodudeman