PC Review


Reply
Thread Tools Rate Thread

concatenate files...

 
 
Paul H
Guest
Posts: n/a
 
      7th Apr 2010

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

 
Reply With Quote
 
 
 
 
Tim Slattery
Guest
Posts: n/a
 
      7th Apr 2010
"Paul H" <(E-Mail Removed)> wrote:

>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


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
(E-Mail Removed)
http://members.cox.net/slatteryt
 
Reply With Quote
 
John John - MVP
Guest
Posts: n/a
 
      7th Apr 2010
Paul H wrote:
> 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


At the Command Prompt with the Copy command:

copy file1+file2+file3 newfile.txt

John
 
Reply With Quote
 
Pegasus [MVP]
Guest
Posts: n/a
 
      7th Apr 2010



"John John - MVP" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Paul H wrote:
>> 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

>
> At the Command Prompt with the Copy command:
>
> copy file1+file2+file3 newfile.txt
>
> John


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


 
Reply With Quote
 
Paul H
Guest
Posts: n/a
 
      7th Apr 2010
Thank you both. I should have known that. I do have a Command Prompt icon
on my desktop because I use various DOS commands occasionally.

Now, since I have 50 or 60 or more files to combine into one, I need some
DOS trick to automatically create the list. With that many files, I will
probably have to do 2 or 3 passes, or the command string will be too long.
Any suggestions?

"Tim Slattery" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> "Paul H" <(E-Mail Removed)> wrote:
>
>>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

>
> 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
> (E-Mail Removed)
> http://members.cox.net/slatteryt


 
Reply With Quote
 
Mint
Guest
Posts: n/a
 
      8th Apr 2010
On Apr 7, 4:53*pm, "Paul H" <NoSpamphobergNoS...@att.net> wrote:
> Thank you both. *I should have known that. *I do have a Command Prompt icon
> on my desktop because I use various DOS commands occasionally.
>
> Now, since I have 50 or 60 or more files to combine into one, I need some
> DOS trick to automatically create the list. *With that many files, I will
> probably have to do 2 or 3 passes, or the command string will be too long..
> Any suggestions?
>
> "Tim Slattery" <Slatter...@bls.gov> wrote in message
>
> news:(E-Mail Removed)...
>
> > "Paul H" <NoSpamphobergNoS...@att.net> wrote:

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

>
> > 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
> > Slatter...@bls.gov
> >http://members.cox.net/slatteryt


This group can help you with a batch file.

Andy

alt . msdos . batch . nt

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how do I concatenate multiple CSV files into one? RobinC Microsoft Excel Misc 8 27th Jun 2008 12:42 PM
Re: I need a software to concatenate wave files... networm Windows XP Basics 1 23rd Sep 2005 03:53 PM
Re: I need a software to concatenate wave files... networm Windows XP Help 1 23rd Sep 2005 03:53 PM
[PDF] Concatenate PDF files Grzegorz Rumatowski Freeware 2 18th Jun 2005 05:43 PM
How do I concatenate powerpoint files together? =?Utf-8?B?VCBCaXJk?= Microsoft Powerpoint 3 27th May 2005 02:32 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:23 AM.