DOS command to combine or merge text files (Users)
> Keep in mind that copying a zero-byte file is not consistent. I know old
> MS-DOS 6.2 COMMAND.COM won't copy it, but XP's CMD will!
A trick I used to use to zero the contents of files/create zero byte files with earlier MS-DOS versions of COMMAND.COM was by typing "COPY NUL FILENAME.EXT"
A more reliable method to create a zero byte file:
rem >filename.ext
> this breaks some (admittedly
> obscure, too-tricky-for-their-own-good) .BATs.
Yup RJKILL.BAT circ 1991 which used COPY NUL with SET to allow RJKILL *.*
> I would almost rather just use something like REXX to generate the .BAT,
Excel is a good often overlooked method for quickly creating batch files, the important thing is to then save as .TXT (.BAT) with space as the delimiter.
Complete thread:
- DOS command to combine or merge text files - CluelessInSeattl, 26.08.2012, 19:13
![Open in board view [Board]](img/board_d.gif)
![Open in mix view [Mix]](img/mix_d.gif)
- DOS command to combine or merge text files - ron, 27.08.2012, 00:32
- DOS command to combine or merge text files - Doug, 27.08.2012, 07:01
- DOS command to combine or merge text files - ron, 27.08.2012, 08:14
- DOS command to combine or merge text files - bretjohn, 27.08.2012, 17:40
- DOS command to combine or merge text files - Rugxulo, 27.08.2012, 20:44
- DOS command to combine or merge text files - Arjay, 27.08.2012, 21:29
- DOS command to combine or merge text files - CluelessInSeattl, 28.08.2012, 18:12
- DOS command to combine or merge text files - Arjay, 28.08.2012, 22:53
- DOS command to combine or merge text files - CluelessInSeattl, 28.08.2012, 18:12
- DOS command to combine or merge text files - Arjay, 27.08.2012, 21:29
- DOS command to combine or merge text files - Rugxulo, 27.08.2012, 20:44
- DOS command to combine or merge text files - Doug, 27.08.2012, 07:01
- DOS command to combine or merge text files - ron, 27.08.2012, 00:32
Mix view