Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
COPY I006_1.txt + I006_2.txt + I006_3.txt I006.txt
I use this command to combo three text file to the I006.txt. I discover the last line of the I006.txt have a square.
Have any batch command cam edit the text file and auto to delete the square?

The "square" is a DOS "end of file" character inserted by the DOS COPY command when copying TEXT files.
You seem to be working with (or expect) Binary files format (Windows tends to treat all files a Binary), so you must tell the DOS COPY command that you want a Binary file, not a Text file. (See COPY /? for help.)
Try:
COPY I006_1.txt + I006_2.txt + I006_3.txt /B I006.txt
If the input files are binary files and may contain the "end of file" character anywhere in the files, it may be necessary to include an additional /B before the list of files to be concatenated together, to prevent DOS COPY from truncating one or more of the files when it sees an "end of file" character 1Ah.

![]() |
Rename file with current ...
|
dos batch file
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |