#1
The Copy command allows you to add data from multiple files and write it to a single file at
the destination.You can separate several source files with a plus sign (+); all the files will be
combined to make one file at the destination. In the following example, files named
Report1.txt, Report2.txt, and Report3.txt are used as source files separated with a +.These
files will be combined using the Copy command and written to a single file named
ComboRep.txt at the destination specified as the D:\FinalRep folder.
Copy Report1.txt + Report2.txt + Report3.txt D:\FinalRep\ComboRep.txt
When you do not specify the destination location, the destination file is written to the
current folder. When you do not specify the destination filename, the destination filename is
taken as the name of the first file you specify in the Copy command. In the following
example, three files named Report.txt, Report1.txt, and Report2.txt are combined to make
one destination file named Report.txt, which is the name of the first file in the list because
the destination filename is not specified Copy Report.txt + Report2.txt + Report3.txt D:\FinalRep
You can also use wildcards to combine several source files into one.The following two
examples show how to do this.The first command combines all files with a .txt extension
and writes them to a destination file named ComboRep.txt in the D:\FinalRep folder.The
second command combines all files whose first six characters are “Report” and whose extension
is .txt to make one file at the destination:
Examples
Copy *.txt D:\FinalRep\ComboRep.txt
Copy Report?.txt D:\FinalRep\ComboRep.txt
This leak has been rated as infected 0 times this month. (1 times in total)