Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

DOS command to combine or merge text files (Users)

posted by Arjay, 27.08.2012, 21:29

> 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:

Back to the forum
Board view  Mix view
22762 Postings in 2122 Threads, 402 registered users (1 online)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum