Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

concotenating all files in folder 1

Status
Not open for further replies.

btween

Programmer
Aug 7, 2003
338
0
0
US
How can I take all the files in a folder (.html files) and concotenate them into one large .txt file

Can I do this with the command prompt.

thanks for your help

new york web development, ny web design
 
btween said:
Can I do this with the command prompt.
I believe the DOS command for concatenating files is [tt]type[/tt].

You'd use it like:
Code:
type file1.html file2.html file3.html >output-file


Note, however, that HTML files have internal structure, and concatenating them will not result in a valid HTML file (though browsers may be able to display it anyway).
 
And just as a bonus item!

If you realise you forgot one file and want to add it onto the end:

type file4.html >> output-file

will add file4 to the end of the existing output file.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top