| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
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.
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.
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. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||