Page 1 of 1
Remove EOF (0x1A) from the file
Posted: 12 Feb 2014 13:36
by miskox
Hi all,
if I
Code: Select all
copy file1.txt+file2.txt file3.txt
copy command always adds an EOF character (0x1A aka SUB).
Is there an easy way to remove it?
Thank you.
Saso
Re: Remove EOF (0x1A) from the file
Posted: 12 Feb 2014 13:48
by carlos
Use /b for each file:
Code: Select all
copy file1.txt /b + file2.txt /b file3.txt /b
Re: Remove EOF (0x1A) from the file
Posted: 13 Feb 2014 10:42
by dbenham
carlos wrote:Use /b for each file:
Code: Select all
copy file1.txt /b + file2.txt /b file3.txt /b
That will preserve any existing EOF that may exist in your source files, which could be a bad thing.
It may be better to use /A for the source, and /B for the target.
Code: Select all
copy /a file1.txt + file2.txt file3.txt /b
Dave Benham
Re: Remove EOF (0x1A) from the file
Posted: 14 Feb 2014 10:47
by miskox
Thank you very much both for you suggestions. This solves my problem.
Saso