I will be working with multiple text files with my friends. I need something that will combine multiple text files into a master file. The method I am after is something that is simple and will create a master file in a click of a button, better if I don't have to install any software (I'm using Windows 7 64bit Professional), simplicity is what I need.

For example in: C:\mydocs\blah\blah

I have:

  • Hello.txt
  • Iloveyou.txt
  • Goodbye.txt

I want the master file to combine text inside in that order. How can I do this?


Open a cmd shell, then

type Hello.txt Iloveyou.txt Goodbye.txt >masterfile.txt


copy Hello.txt+Iloveyou.txt+Goodbye.txt masterfile.txt

I think it will be simpler if you write a .bat to do so.

| improve this answer | |
  • 1
    +1 for cmd bat file. (I took the liberty of tweaking your formatting). – RJFalconer Sep 26 '10 at 12:07
  • 1
    bat file? How do I specify the directory of my files? These don't work they seems to be getting an error. – FlavorOfLife Sep 27 '10 at 12:17
  • 1
    @FlavorOfLife, you specify the directory with cd C:\mydocs\blah\blah. What error did you get? – Dour High Arch Sep 28 '10 at 5:18
  • Okay, never mind. These two work superbly now... in cmd.exe NOT Powershell (silly me). Might I add type is better than copy as copy adds some character at the end. I've made a .bat file and... I'm a bloody happy SuperUser. – FlavorOfLife Sep 28 '10 at 12:52
  • @FlavorOfLife Congruatlations being super ;) – Jokester Sep 29 '10 at 7:17

If these are true TXT files, I would suggest some version control system like Git. You wouldn't need to split the files, but I'm sure the file is some kind of rich file format like a Word document.

If you are using Word 2010, then you can use Skydrive and everyone can work on the document at once. Here is a video on Microsoft Word's CoAuthoring.

| improve this answer | |
  • Ahh I have Word 2010 but I never knew that :D, I wouldn't go creating a new sharepoint though as dropbox is already enough to propagate changes that my friend makes. – FlavorOfLife Sep 26 '10 at 10:37

How important is it that the master aggregate file is updated all the time? If internet connectivity is not a problem, what about using Google Docs? I think you can all even edit the master file and the appropriate parts will be merged.

I was thinking along the lines of a simple batch append script, but there are probably more modern ways to do this.

EDIT: I have a wonderful thing. It is called MobWrite, and it was developed by Neal Fraser, GE. The Google Code site has a downloadable standalone version, and you can also create online documents here a la PasteBin.

In the words of the author,

MobWrite now has what I believe to be the most advanced cursor preservation algorithm available.

If you are interested in the technical details (and how it compares to Google Docs), please see his write-up here:


| improve this answer | |
  • I think the append script is what I'm after. I might of indulged on too many features on the question... – FlavorOfLife Sep 26 '10 at 10:38
  • 1
    I've updated with a handy solution. – Mark C Sep 28 '10 at 1:08
  • Well, I said you could do a batch append a day before the other answer, but now I see you've edited your question. – Mark C Oct 10 '10 at 19:24
  • @FlavorOfLife At least give an upvote to all this work, dude. – Mark C Oct 4 '17 at 19:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.