Just for play only, if you have some text files and want to collate them together into one big file, you can use this command:
code:
type file1.txt >> resultant.txt
type file2.txt >> resultant.txt
del /q file*.txt
start notepad resultant.txt
Save it as a .bat file and run it.
Add in other commands such as change directory if needed.
Explanationtype - helps you copy and paste the text in the particular file, without you copying and pasting
>> copies and paste the text into the resultant file
resultant.txt - the one big file that you want
del /q - deletes a file quietly, without prompting you yes or no
* - deletes all files. In this example, it deletes all files with a name that starts with "file"
start notepad resultant.txt - Windows will open Notepad with all the text copied
And if you have lots of files (for example, 30 files), don't type in type file1.txt all the way to type file30.txt, you will go mad. Technically, it's right, but shorten your batch file to save space.
See an example here:
http://www.bleepingcomputer.com/forums/index.php?s=&showtopic=92817&view=findpost&p=533135