WARNING: This site is intended for online use only; mass-downloading of pages degrades the server and is prohibited.
If you attempt to use tools to mass-download the site, you may be blocked permanently by automated software.
If you want to read this CertiGuide offline, please use one of the links on the left to purchase a convenient PDF copy. Thank you.

Like this CertiGuide? Get it in PDF format!
Click Here!

Custom Search

Table Of Contents  CertiGuide to A+ (A+ 4 Real)
 9  Chapter 1: What are Operating Systems and How Do They Work?
      9  CDI System Commands

Previous Topic/Section
The Ver Command
Previous Page
Pages in Current Topic/Section
Next Page
The Echo Command
Next Topic/Section

The Copy and XCopy Commands

The copy command is used to make an identical copy of a file or pattern matched list of files into a new location. Files can be renamed during the copying process if required.

Some basic uses of copy are illustrated in Table 7.

Table 7: Copy Command Switches



copy a.txt b.txt

Create a duplicate of a.txt named b.txt

copy a.txt e:\temp

Make a copy of a.txt from the current directory in the e:\temp directory

Copy a.txt e:\temp\b.txt

Make a copy of a.txt in the e:\temp directory, and name it b.txt

copy *.txt e:\temp

Duplicate all files in the current directory with a .txt extension into e:\temp

Copy *.txt *.doc

Make a copy of all .txt files, and give the new files an extension of .doc

Copy is also able to concatenate files, which is useful if you need to merge multiple text files into a single file. The syntax of this command is:

copy file1 + file2 outputfile

This command creates a new file called “outputfile” containing the contents of both file1 and file2.

Xcopy is an enhanced and external version of the copy command, with some powerful extra options. It can copy entire directory trees, or even duplicate directories without their files. If the copy command does not provide the required options, xcopy most likely will. One of the most useful Xcopy switches is “/S”, which tells Xcopy to copy all subdirectories as well as the top-level target directory.

Previous Topic/Section
The Ver Command
Previous Page
Pages in Current Topic/Section
Next Page
The Echo Command
Next Topic/Section

If you find CertiGuide.com useful, please consider making a small Paypal donation to help the site, using one of the buttons below. You can also donate a custom amount using the far right button (not less than $1 please, or PayPal gets most/all of your money!) In lieu of a larger donation, you may wish to consider buying an inexpensive PDF equivalent of the CertiGuide to A+ (A+ 4 Real) from StudyExam4Less.com. Thanks for your support!
Donate $2
Donate $5
Donate $10
Donate $20
Donate $30
Donate: $

Home - Table Of Contents - Contact Us

CertiGuide to A+ (A+ 4 Real) (http://www.CertiGuide.com/apfr/) on CertiGuide.com
Version 1.0 - Version Date: March 29, 2005

Adapted with permission from a work created by Tcat Houser et al.
CertiGuide.com Version Copyright 2005 Charles M. Kozierok. All Rights Reserved.
Not responsible for any loss resulting from the use of this site.