Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question

migrated from Oct 10 '11 at 14:54

This question came from our site for professional and enthusiast programmers.

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 Oct 8 '11 at 15:39
no! there is something in notepad which opens another document which you have hidden it i think . – Parkhid Oct 8 '11 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) – RedGrittyBrick Oct 10 '11 at 16:14

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.

share|improve this answer

Just use the copy command in MS-DOS:

copy file1.txt+file2.txt file3.txt
share|improve this answer
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 Oct 8 '11 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 Oct 8 '11 at 18:12
there is some commands in a text file that runs another ones – Parkhid Oct 8 '11 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
share|improve this answer
maybe but, I mean how can we hide multiple files in a one file. – Parkhid Oct 8 '11 at 17:57
Use a different stream? – Joey Oct 8 '11 at 20:00

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

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.