Question

Asked on 2006-10-03 at 11:56:51ID: 25552670

How to merge multipe text files into 1

by: xenium125

Rating9.4Excellent

Hi,

I'd like to create 1 text file by merging a number of other files. eg. for file1.txt, file2.txt, file3.txt i might write:

type file1.txt >> merge.txt
type file2.txt >> merge.txt
type file3.txt >> merge.txt

But i want the list of files to merge to come from another text file dirlist.txt (created using DIR /B > dirlist.txt)

How can i do this? I think i need to use a variable and piping? but i'm not expert in dos, pls provide working bat commands.

Thanks

Related Solutions

Loading Advertisement...

Solution

View this solution now by starting your plan or, if applicable, a 30 day free trial. Setting up your account is quick, easy, and secure. We will return you to this solution, unlocked, when you’re done.

About this Solution

View This Solution - Start Your 30 Day Free Trial
Zone
general
Tags
dos files merge text
Participating Experts
1
Solution Grade
A

Replies

 by: SteveGTR

Posted on 2006-10-03 at 12:37:48ID: 28773712

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: SteveGTR

Posted on 2006-10-03 at 12:40:45ID: 28773713

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: xenium

Posted on 2006-10-03 at 12:56:23ID: 28773714

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by:

Posted on 2006-10-03 at 13:03:13ID: 28773715

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: xenium

Posted on 2006-10-03 at 13:08:53ID: 28773716

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: xenium

Posted on 2006-10-03 at 13:12:17ID: 28773717

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

Log In

Forgot your password?Sign up

Loading Advertisement...

Top Experts

Know a thing or two about MS-DOS? Join our team of experts today.

    BrowseAre you an Expert?