You are currently offline, waiting for your internet to reconnect

Appending Binary Files Using the COPY Command

This article was previously published under Q71161
Retired KB Content Disclaimer
This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.
SUMMARY
MS-DOS allows you to append several binary files together using theCOPY command. However, the target file that results is smaller thanthe sum of the source files.
MORE INFORMATION
To append binary files, use the COPY command with the /b switch. Thesyntax is as follows:
copy <source1> /b + <source2> /b [....] <targetfile>
-or-
copy /b <source1> + <source2> [....] <targetfile>
You can also combine several files into one by using wildcards. Forexample:
copy /b *.exe combin.exe
Note: The /b switch is also useful when combining or appending ASCIIfiles that contain embedded control characters.

For more information, query on the following words:
COPY and strip and EOF
COPY and concatenate
COPY and XCOPY and merge
6.22 3.20 3.21 3.30 3.30a 4.00 4.01 4.01a 5.00 6.00 6.20
Properties

Article ID: 71161 - Last Review: 05/12/2003 20:44:15 - Revision: 2.0

  • Microsoft MS-DOS 3.1
  • Microsoft MS-DOS 3.2 Standard Edition
  • Microsoft MS-DOS 3.21 Standard Edition
  • Microsoft MS-DOS 3.3 Standard Edition
  • Microsoft MS-DOS 3.3a
  • Microsoft MS-DOS 4.0 Standard Edition
  • Microsoft MS-DOS 4.01 Standard Edition
  • Microsoft MS-DOS 5.0a
  • Microsoft MS-DOS 6.0 Standard Edition
  • Microsoft MS-DOS 6.2 Standard Edition
  • Microsoft MS-DOS 6.21 Standard Edition
  • Microsoft MS-DOS 6.22 Standard Edition
  • KB71161
Feedback