Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting XCOPY to concatenate (append)

Tags:

cmd

windows-7

It it actually possible to get XCOPY to append, as per

http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/xcopy.mspx?mfr=true To append files, specify a single file for destination, but multiple files for source (that is, by using wildcards or file1+file2+file3 format).

?

Neither wildcards or file1+file2+file3 format works for me.

Workaround (sometimes): Use COPY instead.

like image 463
ChrisJJ Avatar asked Aug 28 '14 12:08

ChrisJJ


People also ask

Can XCOPY resume?

Luckily, you can run Xcopy in restartable mode. Meaning, even if the copy progress stops due to a network error, the copy can resume after re-establishing the network connection.

What is better than XCOPY?

Unlike Xcopy, Robocopy is used to mirror or synchronize directories. Robocopy will be able to check the target directory and delete files that are no longer in the main tree, instead of copying all files from one directory to another.

Does XCOPY still work in Windows 10?

Xcopy Command AvailabilityThis command is available from within the Command Prompt in all Windows operating systems including Windows 10, Windows 8, Windows 7, Windows Vista, Windows XP, Windows 98, etc.


1 Answers

If I get it right, you want to merge files into one. For text files I would use:

FOR /R %%f in (file*) DO TYPE %%f >> bigfile
like image 64
Diodak Avatar answered Nov 15 '22 08:11

Diodak