How can I combine two text files into one text file in windows?

I have seen somewhere else that it is possible.

There is something in your current notepad document which opens another document which you have inside the file.

Note that the reported size of the text file won't be changed at all.

  • Well the obvious answer is open one text file. Select it all and Copy it. Than open the other text file and paste it.
    – Jonah Allibone
    Commented Oct 8, 2011 at 15:39
  • no! there is something in notepad which opens another document which you have hidden it i think .
    – Parkhid
    Commented Oct 8, 2011 at 15:40
  • I have edited the question for clarity. (Jonah's comment was made earlier - see edit history of question to make better sense of early comments) Commented Oct 10, 2011 at 16:14

4 Answers 4


If you are talking about alternate data streams (as suggested by @Joey), an ADS can be opened in notepad like this:

notepad file1.txt:other.txt

An example of this, including running Streams from sysinternals.

enter image description here

You can do much more with this, including attaching executables and so forth.


Just use the copy command in MS-DOS:

copy file1.txt+file2.txt file3.txt
  • this will change the file size . I don't want to change it , there is some tricks that with some shortcuts you can open another notepad file which doesnot exist.
    – Parkhid
    Commented Oct 8, 2011 at 17:42
  • What do you mean with "change the file size"? I will create a new file (file3.txt) with the content of file1.txt plus the content of file2.txt.
    – marcocamejo
    Commented Oct 8, 2011 at 18:12
  • there is some commands in a text file that runs another ones
    – Parkhid
    Commented Oct 8, 2011 at 18:37

If I'm understanding you correctly, you seem to mean alternate data streams. If so, then the following will write file1 into a different stream of file2:

type file1 > file2:foo

Display it again with

more < file2:foo
  • maybe but, I mean how can we hide multiple files in a one file.
    – Parkhid
    Commented Oct 8, 2011 at 17:57
  • Use a different stream?
    – Joey
    Commented Oct 8, 2011 at 20:00

Sounds to me like you are looking for how to use NTFS alternate data streams to embed text inside another file.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .