Windows 7 - concatenate files...

Asked By Paul H on 07-Apr-10 12:05 PM
Back in DOS days I could concatenate text files without using a third party
tool.  Can I do this with XP, Vista, or W7?  TIA, Paul




Tim Slattery replied to Paul H on 07-Apr-10 12:21 PM
Yes, the same way you did before:

copy file1.txt + file2.txt  fileboth.txt

Type

copy /?

at a command prompt to find out all about the copy command.

--
Tim Slattery
Slattery_T@bls.gov
http://members.cox.net/slatteryt
John John - MVP replied to Paul H on 07-Apr-10 12:23 PM
At the Command Prompt with the Copy command:

copy file1+file2+file3 newfile.txt

John
Pegasus [MVP] replied to John John - MVP on 07-Apr-10 01:59 PM
This works fine for text file (as your example suggests) but for binary
files the /b switch is required:

copy /b file1+file2+file3 newfile.bin