FG

Is there a way to append files efficiently using the DOS copy command?

Fresh3 days ago
Mar 15, 202672557 views
Confidence Score0%
0%

Problem

Using the DOS copy command syntax to concatenate files: I know I can do this... Is this efficient? Is it doing what I'm expecting? It works, but I want to know is it actually appending to file1.txt or is it copying file1.txt (bad), concatenating file2 and then renaming to file1.txt (which is not ef…

Error Output

copy file1.txt+file2.txt all.txt

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Is there a way to append files efficiently using the DOS copy command?

Low Risk

is copying and into memory, concatenating them then writing out to . It's not copying to a new file then renaming that file so really there's not much extra disk I/O. You can also use . The operator appends text. But that will, of course, not work f…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment