How can we hide multiple files in one file

0

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.

Parkhid

Posted 2011-10-08T15:37:39.160

Reputation:

Well the obvious answer is open one text file. Select it all and Copy it. Than open the other text file and paste it. – None – 2011-10-08T15:39:17.400

no! there is something in notepad which opens another document which you have hidden it i think . – None – 2011-10-08T15:40:14.837

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 – 2011-10-10T16:14:00.227

Answers

3

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.

b w

Posted 2011-10-08T15:37:39.160

Reputation: 2 424

1

Just use the copy command in MS-DOS:

copy file1.txt+file2.txt file3.txt

marcocamejo

Posted 2011-10-08T15:37:39.160

Reputation: 223

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. – None – 2011-10-08T17:42:53.720

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. – None – 2011-10-08T18:12:26.450

there is some commands in a text file that runs another ones – None – 2011-10-08T18:37:24.980

1

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

Joey

Posted 2011-10-08T15:37:39.160

Reputation: 36 381

maybe but, I mean how can we hide multiple files in a one file. – None – 2011-10-08T17:57:57.010

Use a different stream? – Joey – 2011-10-08T20:00:56.133

1

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

ewall

Posted 2011-10-08T15:37:39.160

Reputation: 317