Computing.Net > Forums > Disk Operating System > Copy command

Copy command

Reply to Message Icon

Original Message
Name: MarvW
Date: May 16, 2008 at 09:23:19 Pacific
Subject: Copy command
OS: VISTA SP1
CPU/Ram: 2 G
Model/Manufacturer: Dell
Comment:

I am trying to find a means of copying the contents of multiple files to a single file WITHOUT destroying or overwriting the existing contents of the destination file.


Report Offensive Message For Removal

Response Number 1
Name: IVO
Date: May 16, 2008 at 12:34:06 Pacific
Subject: Copy command
Reply: (edit)

That is possible for plain text files only (suffixed .txt) otherwise you need third party utilities aimed to the specific archive (e.g. to append multiple pdfs).

In case of .txt files, use the TYPE command, i.e.

type source1 >> target
type source2 >> target

where the commands can be iterated by a FOR statement, e.g.

for %j in (*.txt) do type %j >> target

By the way this is NOT a DOS question as VISTA has no DOS at all, so better you post similar problems in Programming Forum.


Report Offensive Follow Up For Removal

Response Number 2
Name: Mechanix2Go
Date: May 16, 2008 at 12:43:14 Pacific
Subject: Copy command
Reply: (edit)

If your original is a and the others are b and c::
copy /b a+b+c d
ren d a


=====================================
If at first you don't succeed, you're about average.

M2


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: Copy command

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software